Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data (a :: Type) :+ (b :: Type)
- data HList ts where
- data RHList ts where
- type family MapElem ts t t' where ...
- type family RevToList ts where ...
- class RHListToHList (ts :: Type) where
- type HListTypes ts :: [Type]
- revHListToList :: RHList ts -> HList (HListTypes ts)
- class GetByType t ts where
- class Reverse' (l1 :: [Type]) (l2 :: [Type]) (l3 :: [Type]) | l1 l2 -> l3 where
- class Reverse xs sx | xs -> sx, sx -> xs where
- reverseHList :: HList xs -> HList sx
- data Lenient e
- data Strict
- data Required
- data Optional
- class IsRequired a where
- isRequired :: Bool
- class IsLenient a where
- type family Arg presence parsing a where ...
- newtype WithHeader presence parsing m a = WithHeader (m (Arg presence parsing a))
- newtype WithQueryParam presence parsing m a = WithQueryParam (m (Arg presence parsing a))
- newtype WithPiece a = WithPiece a
- newtype WithPieces a = WithPieces [a]
- newtype WithReq m r = WithReq (m r)
- newtype Hide a = Hide a
- class Hidden m a where
- class FunArgs (ts :: [Type]) where
- type HandleArgs ts st m = (FunArgs (DelayedArgs st), RHListToHList ts, Reverse (HListTypes ts) st, RunDelayed st m, Monad m)
- class Monad m => RunDelayed ts m where
- type DelayedArgs ts :: [Type]
- runDelayed :: HList ts -> m (HList (DelayedArgs ts))
Documentation
data (a :: Type) :+ (b :: Type) infixl 9 Source #
Instances
(Show (RHList as), Show a) => Show (RHList (as :+ a)) Source # | |
RHListToHList as => RHListToHList (as :+ a) Source # | |
Defined in Web.Minion.Args.Internal type HListTypes (as :+ a) :: [Type] Source # revHListToList :: RHList (as :+ a) -> HList (HListTypes (as :+ a)) Source # | |
type HListTypes (as :+ a) Source # | |
Defined in Web.Minion.Args.Internal |
Reversed HList
class RHListToHList (ts :: Type) where Source #
type HListTypes ts :: [Type] Source #
revHListToList :: RHList ts -> HList (HListTypes ts) Source #
Instances
RHListToHList Void Source # | |
Defined in Web.Minion.Args.Internal type HListTypes Void :: [Type] Source # revHListToList :: RHList Void -> HList (HListTypes Void) Source # | |
RHListToHList as => RHListToHList (as :+ a) Source # | |
Defined in Web.Minion.Args.Internal type HListTypes (as :+ a) :: [Type] Source # revHListToList :: RHList (as :+ a) -> HList (HListTypes (as :+ a)) Source # |
class Reverse xs sx | xs -> sx, sx -> xs where Source #
reverseHList :: HList xs -> HList sx Source #
Instances
IsRequired Required Source # | |
Defined in Web.Minion.Args.Internal isRequired :: Bool Source # |
Instances
IsRequired Optional Source # | |
Defined in Web.Minion.Args.Internal isRequired :: Bool Source # |
class IsRequired a where Source #
isRequired :: Bool Source #
Instances
IsRequired Optional Source # | |
Defined in Web.Minion.Args.Internal isRequired :: Bool Source # | |
IsRequired Required Source # | |
Defined in Web.Minion.Args.Internal isRequired :: Bool Source # |
newtype WithHeader presence parsing m a Source #
WithHeader (m (Arg presence parsing a)) |
Instances
Monad m => Hidden m (WithHeader a b m v) Source # | |
Defined in Web.Minion.Args.Internal runHidden :: Hide (WithHeader a b m v) -> m () Source # | |
RunDelayed as m => RunDelayed (WithHeader required lenient m a ': as) m Source # | |
Defined in Web.Minion.Args.Internal type DelayedArgs (WithHeader required lenient m a ': as) :: [Type] Source # runDelayed :: HList (WithHeader required lenient m a ': as) -> m (HList (DelayedArgs (WithHeader required lenient m a ': as))) Source # | |
type DelayedArgs (WithHeader required lenient m a ': as) Source # | |
Defined in Web.Minion.Args.Internal |
newtype WithQueryParam presence parsing m a Source #
WithQueryParam (m (Arg presence parsing a)) |
Instances
Monad m => Hidden m (WithQueryParam a b m v) Source # | |
Defined in Web.Minion.Args.Internal runHidden :: Hide (WithQueryParam a b m v) -> m () Source # | |
RunDelayed as m => RunDelayed (WithQueryParam required lenient m a ': as) m Source # | |
Defined in Web.Minion.Args.Internal type DelayedArgs (WithQueryParam required lenient m a ': as) :: [Type] Source # runDelayed :: HList (WithQueryParam required lenient m a ': as) -> m (HList (DelayedArgs (WithQueryParam required lenient m a ': as))) Source # | |
type DelayedArgs (WithQueryParam required lenient m a ': as) Source # | |
Defined in Web.Minion.Args.Internal type DelayedArgs (WithQueryParam required lenient m a ': as) = Arg required lenient a ': DelayedArgs as |
Instances
Monad m => Hidden m (WithPiece a) Source # | |
RunDelayed as m => RunDelayed (WithPiece a ': as) m Source # | |
Defined in Web.Minion.Args.Internal type DelayedArgs (WithPiece a ': as) :: [Type] Source # runDelayed :: HList (WithPiece a ': as) -> m (HList (DelayedArgs (WithPiece a ': as))) Source # | |
type DelayedArgs (WithPiece a ': as) Source # | |
Defined in Web.Minion.Args.Internal |
newtype WithPieces a Source #
WithPieces [a] |
Instances
Monad m => Hidden m (WithPieces a) Source # | |
Defined in Web.Minion.Args.Internal runHidden :: Hide (WithPieces a) -> m () Source # | |
RunDelayed as m => RunDelayed (WithPieces a ': as) m Source # | |
Defined in Web.Minion.Args.Internal type DelayedArgs (WithPieces a ': as) :: [Type] Source # runDelayed :: HList (WithPieces a ': as) -> m (HList (DelayedArgs (WithPieces a ': as))) Source # | |
type DelayedArgs (WithPieces a ': as) Source # | |
Defined in Web.Minion.Args.Internal |
WithReq (m r) |
Instances
Monad m => Hidden m (WithReq m a) Source # | |
(RunDelayed as m, IsRequest r) => RunDelayed (WithReq m r ': as) m Source # | |
Defined in Web.Minion.Args.Internal type DelayedArgs (WithReq m r ': as) :: [Type] Source # runDelayed :: HList (WithReq m r ': as) -> m (HList (DelayedArgs (WithReq m r ': as))) Source # | |
type DelayedArgs (WithReq m r ': as) Source # | |
Defined in Web.Minion.Args.Internal |
Hide a |
Instances
Hidden m a => Hidden m (Hide a) Source # | |
(RunDelayed as m, Hidden m a) => RunDelayed (Hide a ': as) m Source # | |
Defined in Web.Minion.Args.Internal type DelayedArgs (Hide a ': as) :: [Type] Source # runDelayed :: HList (Hide a ': as) -> m (HList (DelayedArgs (Hide a ': as))) Source # | |
type DelayedArgs (Hide a ': as) Source # | |
Defined in Web.Minion.Args.Internal |
class Hidden m a where Source #
Instances
Hidden m a => Hidden m (Hide a) Source # | |
Monad m => Hidden m (WithPiece a) Source # | |
Monad m => Hidden m (WithPieces a) Source # | |
Defined in Web.Minion.Args.Internal runHidden :: Hide (WithPieces a) -> m () Source # | |
Monad m => Hidden m (WithReq m a) Source # | |
Monad m => Hidden m (WithHeader a b m v) Source # | |
Defined in Web.Minion.Args.Internal runHidden :: Hide (WithHeader a b m v) -> m () Source # | |
Monad m => Hidden m (WithQueryParam a b m v) Source # | |
Defined in Web.Minion.Args.Internal runHidden :: Hide (WithQueryParam a b m v) -> m () Source # |
type HandleArgs ts st m = (FunArgs (DelayedArgs st), RHListToHList ts, Reverse (HListTypes ts) st, RunDelayed st m, Monad m) Source #
class Monad m => RunDelayed ts m where Source #
type DelayedArgs ts :: [Type] Source #
runDelayed :: HList ts -> m (HList (DelayedArgs ts)) Source #