I am using yesod version 1.4.0 in the cabal sandbox.
I have the following routes file:
/static StaticR Static getStatic /auth AuthR Auth getAuth /favicon.ico FaviconR GET /robots.txt RobotsR GET / HomeR GET POST /config/
and the corresponding compliance handler file (correctly imported and all) for implementation.
However, whenever yesod (or when I manually) try to compile, I get the following error
Foundation.hs:48:1: Illegal view pattern: fromPathPiece -> Just dyn_abDD Use -XViewPatterns to enable view patterns
I did not modify Foundation.hs in any way.
When I have only a route that does not accept any parameters, for example
/noparamshere NoParamsR GET
or something similar in the routes file, everything works fine. What did I do wrong?
source share