data ExampleData a b = FirstConstructor a | SecondConstructor [b]
mapExampleData :: (a -> c) -> (b -> d) -> ExampleData a b -> ExampleData c d
mapExampleData f g (SecondConstructor ys) = let ys' = map g ys in SecondConstructor ys'
mapExampleData f g (FirstConstructor x) = FirstConstructor (f x)
After formatting it using Floskell, the equal sign of the second rule is aligned to a non-existing equal sign.
data ExampleData a b = FirstConstructor a | SecondConstructor [b]
mapExampleData :: (a -> c) -> (b -> d) -> ExampleData a b -> ExampleData c d
mapExampleData f g (SecondConstructor ys)
= let ys' = map g ys in SecondConstructor ys'
mapExampleData f g (FirstConstructor x) = FirstConstructor (f x)
For example, consider the following module.
After formatting it using Floskell, the equal sign of the second rule is aligned to a non-existing equal sign.
The following configuration file was used.