Closed fongfiafia closed 10 months ago
Hi @fongfiafia , could you share the imports block in your main.hs
?
Hi @fongfiafia , could you share the imports block in your
main.hs
?
sure~
{-# LANGUAGE OverloadedStrings #-}
module Main (main) where
import Web.Scotty
main :: IO ()
main = do
scotty 8081 $
get "/user" $ do
v <- pathParam "uid"
html $ mconcat ["<h1>", v, "</h1>"]
@fongfiafia ah I got it now. pathParam
is not released yet (it's only in the master branch for now). Please refer to the release documentation on Hackage : https://hackage.haskell.org/package/scotty .
Hello!
I am new to Haskell and Scotty. I am processing examples in basic.hs and I encountered an error (look at the pic below).
this is my cabal file, I think I am using the latest version.
I find it will work when using
queryParam
. I don't know why, but maybe it is better to fix the problem in the examples.Finally, if you consider it as a problem, maybe I can try to make an easy-fix pull request for you.