| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Web.Minion.Args.Internal
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 Associated Types type HListTypes (as :+ a) :: [Type] Source # Methods 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 #
Associated Types
type HListTypes ts :: [Type] Source #
Methods
revHListToList :: RHList ts -> HList (HListTypes ts) Source #
Instances
| RHListToHList Void Source # | |
Defined in Web.Minion.Args.Internal Associated Types type HListTypes Void :: [Type] Source # Methods revHListToList :: RHList Void -> HList (HListTypes Void) Source # | |
| RHListToHList as => RHListToHList (as :+ a) Source # | |
Defined in Web.Minion.Args.Internal Associated Types type HListTypes (as :+ a) :: [Type] Source # Methods revHListToList :: RHList (as :+ a) -> HList (HListTypes (as :+ a)) Source # | |
class Reverse xs sx | xs -> sx, sx -> xs where Source #
Methods
reverseHList :: HList xs -> HList sx Source #
Instances
| IsRequired Required Source # | |
Defined in Web.Minion.Args.Internal Methods isRequired :: Bool Source # | |
Instances
| IsRequired Optional Source # | |
Defined in Web.Minion.Args.Internal Methods isRequired :: Bool Source # | |
class IsRequired a where Source #
Methods
isRequired :: Bool Source #
Instances
| IsRequired Optional Source # | |
Defined in Web.Minion.Args.Internal Methods isRequired :: Bool Source # | |
| IsRequired Required Source # | |
Defined in Web.Minion.Args.Internal Methods isRequired :: Bool Source # | |
newtype WithHeader presence parsing m a Source #
Constructors
| WithHeader (m (Arg presence parsing a)) |
Instances
| Monad m => Hidden m (WithHeader a b m v) Source # | |
Defined in Web.Minion.Args.Internal Methods 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 Associated Types type DelayedArgs (WithHeader required lenient m a ': as) :: [Type] Source # Methods 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 #
Constructors
| WithQueryParam (m (Arg presence parsing a)) |
Instances
| Monad m => Hidden m (WithQueryParam a b m v) Source # | |
Defined in Web.Minion.Args.Internal Methods 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 Associated Types type DelayedArgs (WithQueryParam required lenient m a ': as) :: [Type] Source # Methods 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 | |
Constructors
| WithPiece a |
Instances
| Monad m => Hidden m (WithPiece a) Source # | |
| RunDelayed as m => RunDelayed (WithPiece a ': as) m Source # | |
Defined in Web.Minion.Args.Internal Associated Types type DelayedArgs (WithPiece a ': as) :: [Type] Source # Methods 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 #
Constructors
| WithPieces [a] |
Instances
| Monad m => Hidden m (WithPieces a) Source # | |
Defined in Web.Minion.Args.Internal Methods runHidden :: Hide (WithPieces a) -> m () Source # | |
| RunDelayed as m => RunDelayed (WithPieces a ': as) m Source # | |
Defined in Web.Minion.Args.Internal Associated Types type DelayedArgs (WithPieces a ': as) :: [Type] Source # Methods runDelayed :: HList (WithPieces a ': as) -> m (HList (DelayedArgs (WithPieces a ': as))) Source # | |
| type DelayedArgs (WithPieces a ': as) Source # | |
Defined in Web.Minion.Args.Internal | |
Constructors
| 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 Associated Types type DelayedArgs (WithReq m r ': as) :: [Type] Source # Methods 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 | |
Constructors
| 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 Associated Types type DelayedArgs (Hide a ': as) :: [Type] Source # Methods 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 Methods 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 Methods 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 Methods 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 #
Associated Types
type DelayedArgs ts :: [Type] Source #
Methods
runDelayed :: HList ts -> m (HList (DelayedArgs ts)) Source #
Instances
| Monad m => RunDelayed ('[] :: [Type]) m Source # | |
Defined in Web.Minion.Args.Internal Associated Types type DelayedArgs '[] :: [Type] Source # Methods runDelayed :: HList '[] -> m (HList (DelayedArgs '[])) Source # | |
| (RunDelayed as m, Hidden m a) => RunDelayed (Hide a ': as) m Source # | |
Defined in Web.Minion.Args.Internal Associated Types type DelayedArgs (Hide a ': as) :: [Type] Source # Methods runDelayed :: HList (Hide a ': as) -> m (HList (DelayedArgs (Hide a ': as))) Source # | |
| RunDelayed as m => RunDelayed (WithHeader required lenient m a ': as) m Source # | |
Defined in Web.Minion.Args.Internal Associated Types type DelayedArgs (WithHeader required lenient m a ': as) :: [Type] Source # Methods runDelayed :: HList (WithHeader required lenient m a ': as) -> m (HList (DelayedArgs (WithHeader required lenient m a ': as))) Source # | |
| RunDelayed as m => RunDelayed (WithPiece a ': as) m Source # | |
Defined in Web.Minion.Args.Internal Associated Types type DelayedArgs (WithPiece a ': as) :: [Type] Source # Methods runDelayed :: HList (WithPiece a ': as) -> m (HList (DelayedArgs (WithPiece a ': as))) Source # | |
| RunDelayed as m => RunDelayed (WithPieces a ': as) m Source # | |
Defined in Web.Minion.Args.Internal Associated Types type DelayedArgs (WithPieces a ': as) :: [Type] Source # Methods runDelayed :: HList (WithPieces a ': as) -> m (HList (DelayedArgs (WithPieces a ': as))) Source # | |
| RunDelayed as m => RunDelayed (WithQueryParam required lenient m a ': as) m Source # | |
Defined in Web.Minion.Args.Internal Associated Types type DelayedArgs (WithQueryParam required lenient m a ': as) :: [Type] Source # Methods runDelayed :: HList (WithQueryParam required lenient m a ': as) -> m (HList (DelayedArgs (WithQueryParam required lenient m a ': as))) Source # | |
| (RunDelayed as m, IsRequest r) => RunDelayed (WithReq m r ': as) m Source # | |
Defined in Web.Minion.Args.Internal Associated Types type DelayedArgs (WithReq m r ': as) :: [Type] Source # Methods runDelayed :: HList (WithReq m r ': as) -> m (HList (DelayedArgs (WithReq m r ': as))) Source # | |