Skip to content

Commit e537502

Browse files
Apply suggestions from code review
Co-authored-by: David Thrane Christiansen <[email protected]>
1 parent d093558 commit e537502

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module ForallIdentifier where
22

33
forall :: (a -> Bool) -> [a] -> Bool
4-
forall f ls = and (fmap f ls)
4+
forall f ls = and (map f ls)

message-index/messages/GHC-64088/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ introduced: 9.6.1
77
---
88

99
The string "forall" is not a keyword in the Haskell 2010 standard.
10-
It is therefore possible to declare a toplevel function in Haskell 2010 which uses "forall" as a name.
11-
As a result of the accepted [GHC proposal 281](https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0281-visible-forall.rst) the string "forall" will become a reserved keyword in a future version of GHC, and for this reason GHC warns against the use of "forall" as an identifier.
10+
It is therefore possible to declare a top-level function in Haskell 2010 which uses `forall` as a name.
11+
As a result of the accepted [GHC proposal 281](https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0281-visible-forall.rst) the string `"forall"` will become a reserved keyword in a future version of GHC, so GHC warns against the use of `forall` as an identifier.

0 commit comments

Comments
 (0)