on master help sign in
Explicit export list for HasConstructor
commit8a9bc6351a53abf19d3b1ec5a5566d8e630c8f2a authorCsongor Kiss <kiss.csongor.kiss@gmail.com> dateFri 28 Jul 2017, 21:27 (9 years ago) parent97750a3
2 files changed+6−7
.gitignore+1 src/Data/Generics/Sum/HasConstructor.hs+5−7
.gitignore+1
@@ -1,2 +1,3 @@
1+tags
12dist*
23.stack-work
src/Data/Generics/Sum/HasConstructor.hs+5−7
@@ -32,6 +32,8 @@
3232-- | Qux
3333-- deriving (Show, Generic)
3434--
35+-- @
36+--
3537-- >>> Bar 5 "coconut" ^? as @"Bar"
3638-- Just (5, "coconut")
3739--
@@ -41,16 +43,12 @@
4143-- >>> as @"Bar" # (5, "asd") :: FooBar
4244-- Bar 5 "asd"
4345--
44−-- >>> as @"Barz" # (5, "asd") :: FooBar
45−--
46−-- <interactive>:264:1: error:
47−-- • FooBar has no constructor with name "Barz"
48−-- @
49−--
5046
5147-----------------------------------------------------------------------------
5248
53−module Data.Generics.Sum.HasConstructor where
49+module Data.Generics.Sum.HasConstructor
50+ ( HasConstructor (..)
51+ ) where
5452
5553import Data.Generics.Internal.Lens
5654