[GHC] #10963: Beginner-targeted language extension
GHC
ghc-devs at haskell.org
Mon Apr 25 13:00:38 UTC 2016
#10963: Beginner-targeted language extension
-------------------------------------+-------------------------------------
Reporter: kanetw | Owner:
Type: feature request | Status: patch
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D2136
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by takenobu):
Hi,
Is Alexander Kjeldaas's representation idea useful? [1]
[1] https://mail.haskell.org/pipermail/ghc-devs/2016-February/011398.html
{{{
Prelude> :t foldr
foldr :: Foldable t => (a -> b -> b) -> b -> t a -> b
For example:
foldr :: (a -> b -> b) -> b -> [a] -> b
foldr :: (a -> b -> b) -> b -> Maybe a -> b
foldr :: (a -> b -> b) -> b -> Identity a -> b
foldr :: (a -> b -> b) -> b -> (c, a) -> b
and more
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10963#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list