Skip to content

Instantly share code, notes, and snippets.

@rudolph9
Last active June 10, 2020 17:04
Show Gist options
  • Save rudolph9/292fc8411b5deb64c9467252e19ba1aa to your computer and use it in GitHub Desktop.
Save rudolph9/292fc8411b5deb64c9467252e19ba1aa to your computer and use it in GitHub Desktop.
Haskell intro stuff

Detailed explination

Prelude Data.String> foldr (\acc x -> x ++ acc ) "a" (map (:[]) "12345")
"a54321"
Prelude Data.String> foldl (\acc x -> x ++ acc ) "a" (map (:[]) "12345")
"54321a"
Prelude Data.String> scanr (\acc x -> x ++ acc ) "a" (map (:[]) "12345")
["a54321","a5432","a543","a54","a5","a"]
Prelude Data.String> scanl (\acc x -> x ++ acc ) "a" (map (:[]) "12345")
["a","1a","21a","321a","4321a","54321a"]
@rudolph9
Copy link
Author

rudolph9 commented Jun 5, 2020

@rudolph9
Copy link
Author

rudolph9 commented Jun 5, 2020

@rudolph9
Copy link
Author

rudolph9 commented Jun 5, 2020

@rudolph9
Copy link
Author

rudolph9 commented Jun 9, 2020

good article on the state of haskell ecosystem https://github.com/Gabriel439/post-rfc/blob/master/sotu.md

@rudolph9
Copy link
Author

rudolph9 commented Jun 9, 2020

Haskell Wasm:

  • wasm hackage package looks like it's for generating wasm from haskell and reading wasm from haskell
  • GHCJS compiles haskell to javascript
  • asterius compile haskell to wasm, cool pandoc demo and sponsored by IOHK

@rudolph9
Copy link
Author

rudolph9 commented Jun 9, 2020

Learning resources:

@rudolph9
Copy link
Author

rudolph9 commented Jun 9, 2020

@rudolph9
Copy link
Author

rudolph9 commented Jun 10, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment