Created
October 14, 2016 21:40
-
-
Save rewinfrey/7895fe75562fa268d2da5e659d12cb49 to your computer and use it in GitHub Desktop.
Type Class Constraint as a Type Alias
This file contains hidden or 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
{-# ConstraintKinds #-} | |
module TypeClassConstraintAsTypeAlias where | |
type Showable a = (Show a) | |
example :: Showable a => a -> a | |
example a = undefined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment