haskellfoundation / haskellfoundation/haskell-2010-revised-report
Comparison of Preludes
- Dominant language
- Typst
- Stars
- 20
- Forks
- 5
- Avg merge
- 4d 18h
- Merged PRs (30d)
- 6
Description
In light of a discussion at #6, I compared exports from `Prelude` modules with a focus on the differences. The table below summarises the results
|Haskell 2010 Language Report | `base-4.22.0.0`|Comment
|-----------------------------|----------------|-------
||`type (~)`|[GHC proposal #371](https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0371-non-magical-eq.md)* (from GHC 9.4.1)
||`(<$>)`| From GHC 7.10.1
||`Applicative(pure, (<*>), (*>), (<*)` | #8 (from GHC 7.10.1)
||`Applicative(liftA2)` | #8 (from GHC 9.6.1)
`catch`
`:: IO a -> (IOError -> IO a) -> IO a `||Removed from GHC 7.6.1
||`errorWithoutStackTrace`| From GHC 8.0.1
||`Foldable(foldMap')`| from GHC 7.10.1
||`Foldable(foldl')`| From GHC 9.10.1
||`Functor((<$))`| Method of `Functor` since GHC 6.12.1
`List.all`|`Foldable.all`| #10
`List.and`|`Foldable.and` | #10
`List.any`|`Foldable.any` | #10
`List.concat`|`Foldable.concat` | #10
`List.concatMap`|`Foldable.concatMap` | #10
`List.elem`|`Foldable(elem)` | #10
`List.foldl`|`Foldable(foldl)` | #10
`List.foldl1`|`Foldable(foldl1)` | #10
`List.foldr`|`Foldable(foldr)` | #10
`List.foldr1`|`Foldable(foldr1)` | #10
`List.length`|`Foldable.length` | #10
`List.maximum`|`Foldable(maximum)` | #10
`List.minimum`|`Foldable(minimum)` | #10
`List.notElem`|`Foldable.notElem` | #10
`List.null`|`Foldable.null` | #10
`List.or`|`Foldable.or` | #10
`List.product`|`Foldable(product)` | #10
`List.sum`|`Foldable(sum)` | #10
`mapM`|`Traversable(mapM)` | #10 (from GHC 7.10.1)
`Monad(fail)`|`MonadFail(fail)` | #8 (from GHC 8.8.1)
||`Monoid(mempty, mappend, mconcat)`| From GHC 7.10.1
||`Semigroup((<>))` | From GHC 8.4.1
`sequence`|`Traversable(sequence)` | #10 (from GHC 7.10.1)
||`Traversable(traverse, sequenceA)` | From GHC 7.10.1
||`Word`| From GHC 7.10.1
* GHC proposal #371 requires language feature `TypeOperators` (since GHC 6.8.1), which implies `ExplicitNamespaces` (since GHC 7.6.1).
Contributor guide
Research direction
The issue provides a comparison of Prelude exports and refers to discussion #6, but names no target file, requested edit, or completion condition. Read discussion #6 and verify the Prelude comparison, then clarify which part of the revised report should include the table and what the finished documentation should contain.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100