Import hs-plugins cvs

This commit is contained in:
Don Stewart
2005-04-24 08:51:33 +00:00
commit 887fa59389
494 changed files with 23721 additions and 0 deletions

View File

@ -0,0 +1,14 @@
import AltData
import Data.Char
main = putStrLn f
f = let v = toDyn (7 :: Int)
in typecase (v) [
_Bool --> \(b::Bool) -> show (not b)++" :: Bool",
_Char --> \(c::Char) -> show (toUpper c)++" :: Char",
_Int --> \(i::Int) -> show (-i)++" :: Int",
_String --> \(s::String) -> show (reverse s)++" :: [Char]",
_IntToInt --> \(f::Int->Int) -> show (f 7) ++":: Int -> Int"
] ("couldn't find a typing")

View File

@ -0,0 +1,2 @@
TOP=../../..
include ../../eval.mk

View File

@ -0,0 +1 @@
-7 :: Int