mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
Generalize Data.Functor.Union to (k -> *) -> k -> *.
This commit is contained in:
parent
64a2523d1c
commit
d025a2aa44
@ -6,7 +6,7 @@ import GHC.Show
|
||||
import Prologue
|
||||
|
||||
-- | N-ary union of type constructors.
|
||||
data Union (ts :: [* -> *]) (a :: *) where
|
||||
data Union (ts :: [k -> *]) (a :: k) where
|
||||
Here :: f a -> Union (f ': ts) a
|
||||
There :: Union ts a -> Union (f ': ts) a
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user