Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Haskell is a purely functional programming language, featuring static typing, lazy evaluation, and monadic effects. The primary implementation is GHC, a high-performance compiler with a runtime supporting many forms of parallelism and concurrency.
2
votes
Accepted
Simple decision tree in Haskell
Just a few random comments:
Both elemAt and maximumBy give hints that you're expecting to operate on non-empty structures. Maybe give Data.List.NonEmpty a try.
A few places could be more clear with …
12
votes
1
answer
786
views
Finding the next higher digital permutation of a number
String) -> IO ()
mapFileLines f = do
(fileName:_) <- getArgs
contents <- readFile fileName
mapM_ (putStrLn . f) $ lines contents
main = mapFileLines followingInteger
I'm pretty new to Haskell …
2
votes
Accepted
3-function program computing connected components of a point cloud given a distance matrix
I haven't done a detailed review of Haskell code in a while, so I suspect my advice could structured better. … Haskell makes it easy to define expressive types, you should make use of that feature! :) For example, you could define type AdjacencyMatrix = Matrix Float. …
3
votes
Accepted
Simple INI file parser in Haskell
Just a few comments – not a full review:
parseToIni :: T.Text -> Ini indicates that from any random string, parseToIni can produce an Ini. This makes me wonder how it would handle an invalid .ini fi …