Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
newtype Name (a :: k) Source #
A slug. Display names are simply Text
.
Instances
Eq (Name a) Source # | |
Ord (Name a) Source # | |
Show (Name a) Source # | |
Generic (Name a) Source # | |
Hashable (Name a) Source # | |
Defined in Hercules.API.Name | |
ToJSON (Name a) Source # | |
Defined in Hercules.API.Name | |
FromJSON (Name a) Source # | |
NFData (Name a) Source # | |
Defined in Hercules.API.Name | |
ToHttpApiData (Name a) Source # | |
Defined in Hercules.API.Name toUrlPiece :: Name a -> Text # toEncodedUrlPiece :: Name a -> Builder # toHeader :: Name a -> ByteString # toQueryParam :: Name a -> Text # | |
FromHttpApiData (Name a) Source # | |
Defined in Hercules.API.Name parseUrlPiece :: Text -> Either Text (Name a) # parseHeader :: ByteString -> Either Text (Name a) # | |
ToSchema (Name a) Source # | |
Defined in Hercules.API.Name declareNamedSchema :: Proxy (Name a) -> Declare (Definitions Schema) NamedSchema # | |
ToParamSchema (Name a) Source # | |
Defined in Hercules.API.Name toParamSchema :: forall (t :: SwaggerKind Type). Proxy (Name a) -> ParamSchema t # | |
type Rep (Name a) Source # | |
Defined in Hercules.API.Name |
uncheckedCast :: Name a -> Name b Source #