Hoogle Search

Within LTS Haskell 24.51 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. Ready :: Entry Int (AheadHeapEntry t m a) -> HeapDequeueResult (t :: (Type -> Type) -> Type -> Type) (m :: Type -> Type) a

    streamly Streamly.Internal.Data.SVar

    No documentation available.

  2. module TCE.Data.ReadConf

    Read a serialized (as in the Read typeclass) config data structure from a string This is handy for the case where you need a strongly-typed, possibly hierarchical configuration. It's not a revolutionary idea to use Read deserialization of a text file but I found it useful to support comments and also wrapping possible failure in Either. Example:

    import TCE.Data.ReadConf ( readConfig )
    
    -- Write your own custom data structure for config, like this:
    data Config = Config
    { foo :: String
    , bar :: Int
    , baz :: [String]
    , qux :: Bool
    }
    deriving Read  -- Make it an instance of Read
    
    main = do
    -- Parse a String containing a single instance of the above data type
    econf <- readConfig <$> readFile "read-example.conf"
    
    -- The result is an Either String Config
    either
    print  -- Failure is reported as a Left
    (\c -> (print $ bar c) >> (print $ qux c))
    econf
    
    And then file.conf could contain this Haskell source code:
    -- An example config file
    
    Config
    { foo = "some data"
    
    --, bar = 0
    , bar = 42
    
    , baz =
    [ "dogs"
    , "cats"
    ]
    
    , qux = True
    }
    

  3. newtype ReadShowEncoding opt a

    text-encode Text.Encode.PostgresqlSimple

    No documentation available.

  4. ReadShowEncoding :: a -> ReadShowEncoding opt a

    text-encode Text.Encode.PostgresqlSimple

    No documentation available.

  5. type ReadAttr x o = ReadWriteAttr x () o

    threepenny-gui Graphics.UI.Threepenny.Core

    Attribute that only supports the get operation.

  6. data ReadWriteAttr x i o

    threepenny-gui Graphics.UI.Threepenny.Core

    Generalized attribute with different types for getting and setting.

  7. ReadWriteAttr :: (x -> UI o) -> (i -> x -> UI ()) -> ReadWriteAttr x i o

    threepenny-gui Graphics.UI.Threepenny.Core

    No documentation available.

  8. ReadOnly :: Mode

    vector-mmap Data.Vector.Storable.MMap

    file is mapped read-only, file must exist

  9. ReadWrite :: Mode

    vector-mmap Data.Vector.Storable.MMap

    file is mapped read-write, file must exist

  10. ReadWriteEx :: Mode

    vector-mmap Data.Vector.Storable.MMap

    file is mapped read-write, if file does not exist it will be created with default permissions, region parameter specifies size, if file size is lower it will be extended with zeros

Page 423 of many | Previous | Next