configuration-tools-0.4.0: Tools for specifying and parsing configurations

CopyrightCopyright © 2014-2015 PivotCloud Inc.
LicenseMIT
MaintainerLars Kuhtz <lkuhtz@pivotmail.com>
Stabilityexperimental
Safe HaskellSafe
LanguageHaskell2010

Configuration.Utils.Internal

Contents

Description

 
Synopsis

Lenses

lens :: (s -> a) -> (s -> b -> t) -> Lens s t a b Source #

over :: ((a -> Identity b) -> s -> Identity t) -> (a -> b) -> s -> t Source #

set :: ((a -> Identity b) -> s -> Identity t) -> b -> s -> t Source #

view :: MonadReader r m => ((a -> Const a a) -> r -> Const a r) -> m a Source #

type Lens' s a = Lens s s a a Source #

This is the same type as the type from the lens library with the same name.

In case it is already import from the lens package this should be hidden from the import.

type Lens s t a b = forall f. Functor f => (a -> f b) -> s -> f t Source #

This is the same type as the type from the lens library with the same name.

In case it is already import from the lens package this should be hidden from the import.

type Iso' s a = Iso s s a a Source #

type Iso s t a b = forall p f. (Profunctor p, Functor f) => p a (f b) -> p s (f t) Source #

This is the same type as the type from the lens library with the same name.

In case it is already import from the lens package this should be hidden from the import.

iso :: (s -> a) -> (b -> t) -> Iso s t a b Source #

Misc Utils

(&) :: a -> (a -> b) -> b infixl 1 Source #

(<&>) :: Functor f => f a -> (a -> b) -> f b infixl 1 Source #

sshow :: (Show a, IsString s) => a -> s Source #

exceptT :: Monad m => (e -> m b) -> (a -> m b) -> ExceptT e m a -> m b Source #

errorT :: Monad m => ExceptT Text m a -> m a Source #

fmapL :: (a -> b) -> Either a c -> Either b c Source #