Commits

Luke Plant  committed 0a9cc78

Replaced 'Maybe' with generic Monad type for requestUriRaw

  • Participants
  • Parent commits 5c7f660

Comments (0)

Files changed (1)

File src/Ella/Request.hs

                       in (decoder encoding) bytes
 
 -- | Returns the URI requested by the client, with percent encoding intact
-requestUriRaw :: Request -> Maybe String
+requestUriRaw :: (Monad m) => Request -> m String
 requestUriRaw request = Map.lookup "REQUEST_URI" $ environment request