, ( ["inc"]
, staticDir "/usr/include" )
]
+ fallbacks = [ \ path -> case path of
+ ["hello"] -> return $ Just helloWorld
+ _ -> return Nothing
+ ]
in
do putStrLn "Access http://localhost:9999/ with your browser."
- runHttpd config resources
+ runHttpd config resources fallbacks
helloWorld :: ResourceDef