Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- singleton :: (IsMap k m, KeyOf k a) => a -> m a
- class IsMap k m | m -> k
- type Failure = MonadError
- failure :: MonadError e m => e -> m a
- class (Eq k, Hashable k) => KeyOf k a | a -> k where
- keyOf :: a -> k
- toPair :: KeyOf k a => a -> (k, a)
- selectBy :: (MonadError e m, IsMap k c, Monad m) => e -> k -> c a -> m a
- traverseCollection :: (Monad m, Failure GQLError m, KeyOf k b, FromList m map k b, Foldable t) => (a -> m b) -> t a -> m (map k b)
- prop :: (b -> b -> m b) -> (a -> b) -> a -> a -> m b
- fromLBS :: ByteString -> Text
- toLBS :: Text -> ByteString
- mergeT :: (KeyOf k a, Foldable t, Monad m) => t a -> t a -> ResolutionT k a c m c
- class Empty coll where
- empty :: coll
- elems :: Foldable t => t a -> [a]
- type HistoryT = ReaderT [Ref FieldName]
- addPath :: MonadReader [a1] m => a1 -> m a2 -> m a2
- startHistory :: HistoryT m a -> m a
- mergeConcat :: (Monad m, Merge m a, MonadError e m) => NonEmpty a -> m a
- (<:>) :: (Merge (HistoryT m) a, Monad m) => a -> a -> m a
- selectOr :: IsMap k c => d -> (a -> d) -> k -> c a -> d
- member :: IsMap k m => k -> m a -> Bool
- unsafeFromList :: IsMap k m => [(k, a)] -> m a
- insert :: (NameCollision e a, KeyOf k a, Failure e m) => a -> SafeHashMap k a -> m (SafeHashMap k a)
- fromElems :: (Monad m, KeyOf k a, FromList m map k a) => [a] -> m (map k a)
- throwErrors :: MonadError e m => NonEmpty e -> m b
Documentation
class IsMap k m | m -> k Source #
unsafeFromList, singleton, lookup
type Failure = MonadError Source #
Deprecated: use MonadError
failure :: MonadError e m => e -> m a Source #
Deprecated: use throwError
class (Eq k, Hashable k) => KeyOf k a | a -> k where Source #
Instances
traverseCollection :: (Monad m, Failure GQLError m, KeyOf k b, FromList m map k b, Foldable t) => (a -> m b) -> t a -> m (map k b) Source #
fromLBS :: ByteString -> Text Source #
toLBS :: Text -> ByteString Source #
addPath :: MonadReader [a1] m => a1 -> m a2 -> m a2 Source #
startHistory :: HistoryT m a -> m a Source #
mergeConcat :: (Monad m, Merge m a, MonadError e m) => NonEmpty a -> m a Source #
unsafeFromList :: IsMap k m => [(k, a)] -> m a Source #
insert :: (NameCollision e a, KeyOf k a, Failure e m) => a -> SafeHashMap k a -> m (SafeHashMap k a) Source #
throwErrors :: MonadError e m => NonEmpty e -> m b Source #