Put a single value in a record.
Modulecomposite-tuple-0.1.2.0Haskell2010
Composite.Record.Tuple
Tuple functions for composite records, inspired by relude.
- 9 values
- Packagecomposite-tuple-0.1.2.0
- Exports10
- LanguageHaskell2010
- LicenceMIT
- SourceTuple.hs
Pattern for a pair in a record
Apply a function, with the result in the fst slot, and the value in the other.
Apply a function with the result in the snd slot, and the value in the other.
Like fmap, but also keep the original value in the snd position.
Like fmap, but also keep the original value in the fst position.
Apply a function that returns a value inside of a functor, with the output in the first slot, the input in the second, and the entire tuple inside the functor.
Apply a function that returns a value inside of a functor, with the output in the second slot, the input in the fist, and the entire tuple inside the functor.
Apply two functions to a single value and store the results in each slot.
Apply two applicative functions to a single value and store the results in each slot.