Created
November 11, 2014 03:28
-
-
Save ktvoelker/296f40966e2f1d4846e2 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
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE KindSignatures #-} | |
module FS where | |
type Date = String | |
data FileKind = FILE | FOLDER | |
data Entry (k :: FileKind) where | |
File :: String -> Date -> Int -> Entry FILE | |
Folder :: String -> String -> Entry FOLDER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment