4 ms·
That depends. Can I get the results directly from the compiler, or must I run the actual program? About your example, it's not idiomatic Haskell. If you try to
by marcosdumay 12y ago
That depends. Can I get the results directly from the compiler, or must I run the actual program?
About your example, it's not idiomatic Haskell. If you try to code the same exact algithm in Haskell, you'll have the same exact problem (ghc has a warning for it); if you recode it in fmap or list pattern matching that are idiomatic to Haskell, you'll avoid the problem.