curry-frontend-1.0.4: Compile the functional logic language Curry to several intermediate formats

Copyright(c) 2001 - 2003 Wolfgang Lux
2011 - 2015 Björn Peemöler
2016 - 2017 Finn Teegen
LicenseBSD-3-clause
Maintainerfte@informatik.uni-kiel.de
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Base.Utils

Description

The module Utils provides a few simple functions that are commonly used in the compiler, but not implemented in the Haskell Prelude or standard library.

Documentation

fst3 :: (a, b, c) -> a Source #

snd3 :: (a, b, c) -> b Source #

thd3 :: (a, b, c) -> c Source #

curry3 :: ((a, b, c) -> d) -> a -> b -> c -> d Source #

uncurry3 :: (a -> b -> c -> d) -> (a, b, c) -> d Source #

(++!) :: [a] -> [a] -> [a] infixr 5 Source #

foldr2 :: (a -> b -> c -> c) -> c -> [a] -> [b] -> c Source #

mapAccumM :: (Monad m, MonadPlus p) => (acc -> x -> m (acc, y)) -> acc -> [x] -> m (acc, p y) Source #

findDouble :: Eq a => [a] -> Maybe a Source #

findMultiples :: Eq a => [a] -> [[a]] Source #