Safe Haskell | None |
---|---|
Language | Haskell2010 |
Some common utilities.
Documentation
PositiveUnsafe | |
|
Instances
Eq a => Eq (Positive a) Source # | |
Ord a => Ord (Positive a) Source # | |
Defined in Servant.Util.Internal.Util | |
Show a => Show (Positive a) Source # | |
Buildable x => Buildable (Positive x) Source # | |
Defined in Servant.Util.Internal.Util | |
ToHttpApiData a => ToHttpApiData (Positive a) Source # | |
Defined in Servant.Util.Internal.Util toUrlPiece :: Positive a -> Text # toEncodedUrlPiece :: Positive a -> Builder # toHeader :: Positive a -> ByteString # toQueryParam :: Positive a -> Text # | |
(FromHttpApiData a, Show a, Ord a, Num a) => FromHttpApiData (Positive a) Source # | |
Defined in Servant.Util.Internal.Util parseUrlPiece :: Text -> Either Text (Positive a) # parseHeader :: ByteString -> Either Text (Positive a) # |
unsafeToPositive :: (Show a, Ord a, Num a, HasCallStack) => a -> Positive a Source #
positiveVal :: forall k i. (KnownPositive k, Num i) => Positive i Source #