Hoogle Search
Within LTS Haskell 24.46 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
getProtocolByNumber :: ProtocolNumber -> IO ProtocolEntrynetwork-bsd Network.BSD getprotobynumber(3).
getProtocolNumber :: ProtocolName -> IO ProtocolNumbernetwork-bsd Network.BSD getprotobyname(3).
getServicePortNumber :: ServiceName -> IO PortNumbernetwork-bsd Network.BSD Get the PortNumber corresponding to the ServiceName.
protoNumber :: ProtocolEntry -> ProtocolNumbernetwork-bsd Network.BSD Protocol number
alphaNum :: CharParsing m => m Charparsers Text.Parser.Char Parses a letter or digit. Returns the parsed character.
-
postgresql-simple Database.PostgreSQL.Simple.TypeInfo.Static No documentation available.
-
postgresql-simple Database.PostgreSQL.Simple.TypeInfo.Static No documentation available.
-
postgresql-simple Database.PostgreSQL.Simple.TypeInfo.Static No documentation available.
-
postgresql-simple Database.PostgreSQL.Simple.TypeInfo.Static No documentation available.
boundedEnumCodec :: (Eq enum, Enum enum, Bounded enum) => (enum -> Text) -> JSONCodec enumautodocodec Autodocodec A codec for a Bounded Enum that uses the provided function to have the values correspond to literal Text values.
Example usage
>>> data Fruit = Apple | Orange deriving (Show, Eq, Enum, Bounded) >>> :{ let c = boundedEnumCodec $ \case Apple -> "foo" Orange -> "bar" :}>>> toJSONVia c Apple String "foo" >>> JSON.parseMaybe (parseJSONVia c) (String "bar") :: Maybe Fruit Just Orange