packages feed

mig-server 0.1.0.1 → 0.2.1.0

raw patch · 2 files changed

+18/−3 lines, 2 filesdep ~migdep ~mig-extraPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: mig, mig-extra

API changes (from Hackage documentation)

+ Mig: (:|) :: a -> b -> (:|) a b
+ Mig: Cookie :: Maybe a -> Cookie a
+ Mig: Just :: a -> Maybe a
+ Mig: Nothing :: Maybe a
+ Mig: OptionalHeader :: Maybe a -> OptionalHeader (sym :: Symbol) a
+ Mig: SetCookie :: a -> Maybe UTCTime -> Maybe Text -> Maybe Text -> Bool -> Bool -> SetCookie a
+ Mig: Url :: Path -> [(Text, Text)] -> Map Text Text -> Url
+ Mig: [$sel:captures:Url] :: Url -> Map Text Text
+ Mig: [$sel:cookie:SetCookie] :: SetCookie a -> a
+ Mig: [$sel:domain:SetCookie] :: SetCookie a -> Maybe Text
+ Mig: [$sel:expires:SetCookie] :: SetCookie a -> Maybe UTCTime
+ Mig: [$sel:httpOnly:SetCookie] :: SetCookie a -> Bool
+ Mig: [$sel:path:SetCookie] :: SetCookie a -> Maybe Text
+ Mig: [$sel:path:Url] :: Url -> Path
+ Mig: [$sel:queries:Url] :: Url -> [(Text, Text)]
+ Mig: [$sel:secure:SetCookie] :: SetCookie a -> Bool
+ Mig: catMaybes :: [Maybe a] -> [a]
+ Mig: class IsString a
+ Mig: class ToUrl a
+ Mig: data Maybe a
+ Mig: data SetCookie a
+ Mig: data Url
+ Mig: data a :| b
+ Mig: defCookie :: a -> SetCookie a
+ Mig: fromJust :: HasCallStack => Maybe a -> a
+ Mig: fromMaybe :: a -> Maybe a -> a
+ Mig: fromString :: IsString a => String -> a
+ Mig: isJust :: Maybe a -> Bool
+ Mig: isNothing :: Maybe a -> Bool
+ Mig: lines :: String -> [String]
+ Mig: listToMaybe :: [a] -> Maybe a
+ Mig: mapMaybe :: (a -> Maybe b) -> [a] -> [b]
+ Mig: mapUrl :: ToUrl a => (Url -> Url) -> a -> a
+ Mig: maybe :: b -> (a -> b) -> Maybe a -> b
+ Mig: maybeToList :: Maybe a -> [a]
+ Mig: newtype Cookie a
+ Mig: newtype OptionalHeader (sym :: Symbol) a
+ Mig: renderUrl :: IsString a => Url -> a
+ Mig: setCookie :: (ToForm cookie, IsResp resp) => SetCookie cookie -> resp -> resp
+ Mig: toUrl :: forall (m :: Type -> Type). ToUrl a => Server m -> a
+ Mig: type String = [Char]
+ Mig: unlines :: [String] -> String
+ Mig: unwords :: [String] -> String
+ Mig: urlArity :: ToUrl a => Int
+ Mig: words :: String -> [String]

Files

mig-server.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack  name:               mig-server-version:            0.1.0.1+version:            0.2.1.0 synopsis:           Build lightweight and composable servers description:        With library mig we can build lightweight and composable servers.                     There are only couple of combinators to assemble servers from parts.@@ -27,6 +27,7 @@                     .                     Example of hello world server:                     .+                    > {-# Language OverloadedStrings #-}                     > import Mig.Json.IO                     >                     > -- | We can render the server and run it on port 8085.@@ -103,8 +104,8 @@     , data-default     , http-api-data     , http-types-    , mig >=0.2.0.1-    , mig-extra >=0.1.0.1+    , mig >=0.2.1.0+    , mig-extra >=0.1.1.0     , mig-swagger-ui >=0.1     , mig-wai >=0.1.0.1     , openapi3
src/Mig.hs view
@@ -46,6 +46,9 @@   notImplemented,   redirect,   setHeader,+  setCookie,+  SetCookie (..),+  defCookie,    -- ** methods   Send (..),@@ -67,6 +70,13 @@   HEAD,   TRACE, +  -- ** safe URLs+  UrlOf,+  ToUrl (..),+  Url (..),+  renderUrl,+  (:|) (..),+   -- ** path and query    -- | Build API for routes with queries and captures.@@ -77,6 +87,8 @@   QueryFlag (..),   Optional (..),   Body (..),+  OptionalHeader (..),+  Cookie (..),   Header (..),   PathInfo (..),   FullPathInfo (..),@@ -158,7 +170,9 @@ import Control.Monad.Trans.Class as X import Data.Aeson as X (FromJSON (..), ToJSON (..)) import Data.Default as X+import Data.Maybe as X import Data.OpenApi as X (OpenApi, ToParamSchema (..), ToSchema (..))+import Data.String as X import Data.Text as X (Text) import GHC.Generics as X (Generic) import Network.HTTP.Types.Header as X (RequestHeaders, ResponseHeaders)