I am trying to convert scheme code to Haskell code.
For that, I want know how to use scheme's
in Haskell
could somebody tell me how to do this in haskell? thanks
Essentially you need to learn Haskell, the language, and its library ecosystem. To find libraries and functions, start by learning the Prelude
, since many things are defined there. Then move on to Hackage, where you have thousands of libraries to pick from.
Specifically, most of what you need can be found in the Prelude, and via Hoogle.
map
is defined.
"lambda" is the syntax: \x -> ... e ..
.
"return port from file path": try openFile
"read-line from port", try hGetLine
"append to list", try ++
"regexp-match", use one of the fine regex libraries from Hackage.
"GUI", pick one of gtk2hs or wxHaskell.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With