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
anders:DisML ± cat f.dis {git:DisML@pretty}! | |
fun type f: int*int -> int | |
| f (x,y) if x < y = x+y+7 | |
| ... if x == y = x+y | |
| ... = y-x | |
anders:DisML ± dist/build/DisML/disml < f.dis {git:DisML@pretty}! | |
Program {unProgram = [TLDecls [FunDecl [FunD (Just (FunType (Id "f") (Type [] |
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 DeriveDataTypeable #-} | |
module CNEx where | |
import Prelude hiding (catch) | |
import Data.Typeable | |
import Control.Exception | |
import System.Random | |
import System.IO.Unsafe | |
data ChuckNorris = ChuckNorris deriving (Typeable) |
NewerOlder