module SimpleFunctions ( identity, compose, append, firstElement, secondElem ) where
identity :: a -> a
identity x = x
compose :: (b -> c) -> (a -> b) -> a -> c
compose g f x = g (f x)
append :: [a] -> [a] -> [a]
append [] ys = ys
append (x:xs) ys = x : (append xs ys)
firstElement :: (a,b) -> a
firstElement (x,_) = x
secondElem :: (a,b) -> b
secondElem (_,y) = y
Here, the header line is 84 characters long.
After formatting the module with Floskell, the module header is still 84 characters long, although I have set the maximum line characters to 80.
module SimpleFunctions ( identity, compose, append, firstElement, secondElem ) where
identity :: a -> a
identity x = x
compose :: (b -> c) -> (a -> b) -> a -> c
compose g f x = g (f x)
append :: [a] -> [a] -> [a]
append [] ys = ys
append (x : xs) ys = x : (append xs ys)
firstElement :: (a, b) -> a
firstElement (x, _) = x
secondElem :: (a, b) -> b
secondElem (_, y) = y
Here, the module header is still 84 characters long.
For example, consider the following module.
Here, the header line is 84 characters long.
After formatting the module with
Floskell
, the module header is still 84 characters long, although I have set the maximum line characters to 80.Here, the module header is still 84 characters long.
The following configuration file was used.