Created
May 24, 2017 15:08
-
-
Save rice10t/0ca1288ed5d2e907aaab9e2b59e2822a to your computer and use it in GitHub Desktop.
型クラスとカインドの関係性
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
module Hoge (Hoge, Fuga) where | |
-- > :k Applicative | |
-- Applicative :: (* -> *) -> Constraint | |
-- > :k Hoge | |
-- Hoge :: (* -> *) -> Constraint | |
class (Applicative h) => Hoge h where | |
hoge :: h a | |
-- > :k Show | |
-- Show :: * -> Constraint | |
-- > :k Fuga | |
-- Fuga :: * -> Constraint | |
class (Show f) => Fuga f where | |
fuga :: f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment