Created
February 15, 2023 17:04
-
-
Save SevanBadal/2b6b062c212c342cc2b7717159a17fc7 to your computer and use it in GitHub Desktop.
Haskell GADT w/ type class constraint deriving Show
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data Vector a where | |
Vector :: (Num a) => a -> a -> a -> Vector a | |
deriving instance Show a => Show (Vector a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment