
#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: | [wiki:Design/GHCi/Type] | -------------------------------------+------------------------------------- Comment (by Iceland_jack): Replying to [comment:7 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 }}}
See #11439 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10963#comment:16 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler