Name | Last modified | Size |
---|---|---|
Parent Directory | - | |
AlfaSource/ | 2004-01-23 23:23 | - |
BaseStruct2Alfa.hs | 2005-07-21 00:02 | 32K |
Flags.ghc | 2002-10-20 09:12 | 272 |
Hs2Alfa.hs | 2002-11-19 00:17 | 788 |
HuMakefile | 2005-03-22 23:08 | 650 |
Makefile | 2005-02-02 00:38 | 1.2K |
PfeAlfaCmds.hs | 2005-10-11 01:09 | 3.5K |
Prelude.alfa | 2001-11-13 20:48 | 636 |
Prop.alfa | 2001-09-08 09:58 | 507 |
Prop2Alfa.hs | 2005-05-11 22:52 | 9.1K |
USCC.hs | 2003-01-09 01:17 | 397 |
apfe.hs | 2004-01-24 01:15 | 213 |
tests/ | 2005-10-11 01:09 | - |
tst0.hs | 2001-11-13 09:43 | 1.3K |
tst0f.hs | 2001-11-14 20:50 | 177 |
tst1.hs | 2001-09-11 07:39 | 386 |
tst1prop.alfa | 2001-09-11 07:39 | 276 |
tst1propb.alfa | 2001-09-11 07:39 | 802 |
tstHs2Alfa.hs | 2002-05-25 20:27 | 1.0K |
tstProp2Alfa.hs | 2002-05-25 20:27 | 1.0K |
By running make
you can create apfe
, a command line
tool that has all the functionality of the PFE framework, plus the
ability to translate Haskell files to Alfa files.
There are also two (obsolete) test programs that don't depend on the PFE
framework: tstHs2Alfa
(for the base language, Haskell 98)
and tstProp2Alfa
(for Hasell 98 + property declarations).
They can be compiled with make
progamname.
The code compiles with GHC, provided that the directory
AlfaSource
, containing certain modules from Alfa, is present
(get alfaforpfe.tar.gz
and unpack it in this directory).
sig
, .
and Type
are translated).
case let ... in ... of ...
class Functor f where fmap :: (a->b)->f a->f b
instance Ix a => Ix (Array a) where fmap = ...
there will be a problem with capture of the type variable a
.
Lfp
and Gfp
are
translated, but their meaning in Alfa is probably not what it should be.
===
) is translated to
intentional equality, which differs for functions.
The subdirectory tests contains sample Haskell modules that the translator can translate. (There are also some test files in this directory.)