4 ms·
You mean a piecewise definition of a function? I don't think this is unidiomatic or discouraged in Haskell at all.
by p0llard 7y ago
You mean a piecewise definition of a function? I don't think this is unidiomatic or discouraged in Haskell at all.
- macintux 7y agoThere's some indirect discussion here that seems to contradict that, but I certainly could be wrong. https://github.com/elm/compiler/issues/973 https://github.com/elm/compiler/issues/973
- Iceland_jack 7y agoThat's in the context of Elm, Evan gives his reasons but in the context of Haskell such multi-line equations are very common and normal Haskell style.