references-0.1.0.0: Generalization of lenses, folds and traversals for haskell

Safe HaskellNone
LanguageHaskell98

Control.Reference.Examples.Examples

Description

A collection of random example references

Documentation

test6 :: (Int, Int)

test8 :: IO (IO (MVar a))

test9 :: Identity [()]

test10 :: [Int]

test11 :: [Int]

data Dept

Constructors

Dept 

Fields

_manager :: Employee
 
_staff :: [Employee]
 

Instances

data Employee

Constructors

Employee 

Fields

__name :: String
 
__salary :: Float
 

Instances

test14 :: [[Char]]

data PWrapped m a

Constructors

PWrapped 

Fields

_pwrap :: m a
 

pwrap :: Lens (PWrapped m a) (PWrapped n b) (m a) (n b)

data MWrapped a

Constructors

MWrapped 

Fields

_mwrap :: Maybe a
 

mwrap :: Lens (MWrapped a) (MWrapped b) (Maybe a) (Maybe b)

data Maybe' a

Constructors

Just' 

Fields

_fromJust' :: a
 
Nothing' 

fromJust' :: Monad w => LensPart' w (Maybe' a) (Maybe' b) a b

data Tuple a b

Constructors

Tuple 

Fields

_fst' :: a
 
_snd' :: b
 

fst' :: Monad w => Lens' w (Tuple a c) (Tuple b c) a b

test :: IO ()