Popularity
6.6
Growing
Activity
1.5
-
19
5
1

Monthly Downloads: 40
Programming language: Haskell
License: MIT License
Tags: Data    
Latest version: v0.1.2.0

summer alternatives and similar packages

Based on the "Data" category.
Alternatively, view summer alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of summer or a related project?

Add another 'Data' Package

README

summer

Hackage Build Status

Extensible sums and products for Haskell.

x :: Sum '[Int, Bool, Float]
x = Inj True

y :: Sum '[Int, Float, Bool, Char]
y = weaken x

a :: Bool
a = match y (== 10) (== 0.2) id (== 'x')

x' :: Prod '[Int, Float, Bool, Char]
x' = produce $ \f -> f 10 0.2 True 'x'

y' :: Prod '[Bool, Float]
y' = strengthen x'

a' :: Bool
a' = consume y' (\b f -> b && f == 0.2)

This package is extremely experimental, and is subject to arbitrarily large changes.