summaryrefslogtreecommitdiff
path: root/Lattice.hs
blob: 574c123374e92f9422ecf2b5cc934df2b7eb071f (plain)
1
2
3
4
5
6
7
8
9
module Lattice where


class Eq a => Lattice a where
    join :: a -> a -> a
    bottom :: a

    joinList :: [a] -> a
    joinList = foldl join bottom