Skip to content

Commit 21cdd42

Browse files
GCrispinohdgarrood
authored andcommitted
Include <#> notes to Differences-from-Haskell.md (#285)
* Include <#> notes to Differences-from-Haskell.md * Update CONTRIBUTORS.md
1 parent 3ebd505 commit 21cdd42

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CONTRIBUTORS.md

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ If you would prefer to use different terms, please use the section below instead
6666
|[@BebeSparkelSparkel](https://github.com/BebeSparkelSparkel)| William Rusnack |[CC BY-NC-SA 3.0](https://creativecommons.org/licenses/by-nc-sa/3.0/deed)|
6767
|[@archaeron](https://github.com/archaeron)| archaeron |[CC BY-NC-SA 3.0](https://creativecommons.org/licenses/by-nc-sa/3.0/deed)|
6868
|[@milesfrain](https://github.com/milesfrain)| Miles Frain |[CC BY-NC-SA 3.0](https://creativecommons.org/licenses/by-nc-sa/3.0/deed)|
69+
|[@GCrispino](https://github.com/gcrispino)| Gabriel Crispino |[CC BY-NC-SA 3.0](https://creativecommons.org/licenses/by-nc-sa/3.0/deed)|
6970

7071
### Contributors using Modified Terms
7172

language/Differences-from-Haskell.md

+1
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ As PureScript has not inherited Haskell's legacy code, some operators and functi
307307

308308
-`(>>)` is `(*>)`, as `Apply` is a superclass of `Monad` so there is no need to have an `Monad`-specialised version.
309309
- Since 0.9.1, the `Prelude` library does not contain `(++)` as a second alias for `append` / `(<>)` (`mappend` in Haskell) anymore.
310+
- Haskell's `<&>` operator (from `Data.Functor`) is equivalent to Purescript's `<#>` (operator alias to `mapFlipped`).
310311
-`mapM` is `traverse`, as this is a more general form that applies to any traversable structure, not just lists. Also it only requires `Applicative` rather than `Monad`. Similarly, `liftM` is `map`.
311312
- Many functions that are part of `Data.List` in Haskell are provided in a more generic form in `Data.Foldable` or `Data.Traversable`.
312313
-`some` and `many` are defined with the type of list they operate on (`Data.Array` or `Data.List`).

0 commit comments

Comments
 (0)
close