1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 13:51:44 +03:00

Derive Foldable, Functor, & Traversable instances.

This commit is contained in:
Rob Rix 2017-08-31 22:40:40 -04:00
parent 238d0fdb4a
commit a827e8d331

View File

@ -7,6 +7,7 @@ import Data.Foldable (toList)
import Data.Functor.Classes
data Table i a = Table { tableAddresses :: [i], tableBranches :: Array i (Maybe a) }
deriving (Foldable, Functor, Traversable)
instance (Ix i, Show i) => Show1 (Table i) where