Skip to content

Instantly share code, notes, and snippets.

@SevanBadal
Created February 15, 2023 17:04
Show Gist options
  • Save SevanBadal/2b6b062c212c342cc2b7717159a17fc7 to your computer and use it in GitHub Desktop.
Save SevanBadal/2b6b062c212c342cc2b7717159a17fc7 to your computer and use it in GitHub Desktop.
Haskell GADT w/ type class constraint deriving Show
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