on bfcd00a help sign in
30 lines 868 B history raw
1-----------------------------------------------------------------------------
2-- |
3-- Module : Data.Generics.Sum
4-- Copyright : (C) 2017 Csongor Kiss
5-- License : BSD3
6-- Maintainer : Csongor Kiss <kiss.csongor.kiss@gmail.com>
7-- Stability : experimental
8-- Portability : non-portable
9--
10-- Magic sum operations using Generics
11--
12-- These classes need not be instantiated manually, as GHC can automatically
13-- prove valid instances via Generics. Only the `Generic` class needs to
14-- be derived (see examples).
15--
16-----------------------------------------------------------------------------
18module Data.Generics.Sum
19 ( -- *Prisms
20 AsAny (..)
22 , AsConstructor (..)
23 , AsSubtype (..)
24 , AsType (..)
25 ) where
27import Data.Generics.Sum.Any
28import Data.Generics.Sum.Constructors
29import Data.Generics.Sum.Subtype
30import Data.Generics.Sum.Typed