scotty-web / scotty

Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp (Official Repository)
http://hackage.haskell.org/package/scotty
BSD 3-Clause "New" or "Revised" License
1.72k stars 134 forks source link

clicker.hs example doesn't work #44

Closed funrep closed 11 years ago

funrep commented 11 years ago

I use scotty-0.4.6. The clicker examples gives this error:

clicker.hs:23:8:
    Could not find module `Web.Scotty.Util'
    it is a hidden module in the package `scotty-0.4.6'
    Use -v to see a list of the files searched for.

Which make sense since clicker.hs imports a hidden module.

funrep commented 11 years ago

I bypassed this problem by manually implementing lazyTextToStrictByteString and strictByteStringToLazyText in clicker.hs. But then a new problem arised:

clicker.hs:66:22: Not in scope: `staticRoot'

clicker.hs:71:17: Not in scope: `H.preEscapedLazyText'

clicker.hs:95:17: Not in scope: `H.lazyText'

Might clicker.hs be made in a older version of blaze-html? As for the staticRoot, I got no idea...

xich commented 11 years ago

I think clicker only ever worked on my computer... and not even any of the ones I currently have, since I lost the JS file. :-(

I'm just going to remove the example. Are you interested because you are looking for a cookie example? We can probably come up with a much better one now.

funrep commented 11 years ago

Yes, I was interested in the cookie example. I'm currently investigating how to implement a login system and I'm completely new to web dev. I looked into Yesod but it was waay to complex, scotty seems much nicer! :-)

xich commented 11 years ago

I'm going to close this, as I've removed the clicker example, and open an issue for 'write a cookie example' instead.