-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A simple, sinatra-inspired web framework. -- -- Bird is a hack-compatible framework for simple websites. @package bird @version 0.0.9 module Bird.Request.QueryStringParser parseQueryString :: String -> [(String, Maybe String)] module Bird.Request data Request Request :: RequestMethod -> Path -> [(String, Maybe String)] -> Request verb :: Request -> RequestMethod path :: Request -> Path params :: Request -> [(String, Maybe String)] data RequestMethod GET :: RequestMethod POST :: RequestMethod PUT :: RequestMethod DELETE :: RequestMethod type Path = [String] instance Show Request instance Show RequestMethod instance Default Request module Bird.Reply data Reply Reply :: Int -> Map String String -> String -> String -> Reply replyStatus :: Reply -> Int replyHeaders :: Reply -> Map String String replyBody :: Reply -> String replyMime :: Reply -> String instance Show Reply instance Default Reply module Bird.Reply.Codes ok_ :: Reply ok :: String -> IO Reply created_ :: Reply created :: String -> IO Reply accepted_ :: Reply accepted :: String -> IO Reply movedPermanently_ :: Reply movedPermanently :: String -> IO Reply found_ :: Reply found :: String -> IO Reply unauthorized_ :: Reply unauthorized :: String -> IO Reply forbidden_ :: Reply forbidden :: String -> IO Reply notFound_ :: Reply notFound :: String -> IO Reply gone_ :: Reply gone :: String -> IO Reply internalServerError_ :: Reply internalServerError :: String -> IO Reply module Bird.BirdRouter type BirdRouter = StateT Reply (ReaderT Request IO) body :: (MonadState Reply m) => String -> m () status :: (MonadState Reply m) => Int -> m () param :: (MonadReader Request m) => String -> m (Maybe String) module Bird.Translator class BirdReplyTranslator a fromBirdReply :: (BirdReplyTranslator a) => Reply -> a class BirdRequestTranslator a toBirdRequest :: (BirdRequestTranslator a) => a -> Request module Bird.Translator.Hack fromBirdReply :: (BirdReplyTranslator a) => Reply -> a toBirdRequest :: (BirdRequestTranslator a) => a -> Request instance BirdRequestTranslator Env instance BirdReplyTranslator Response module Bird