ref: 4f1aec67aff9883abc3af68e39c6d31f137b7458
parent: e83b1be55bff93728b618d6f678bb1419c71c367
author: Lennart Augustsson <lennart.augustsson@epicgames.com>
date: Tue Feb 20 08:33:43 EST 2024
Run cpphs.
--- a/Makefile
+++ b/Makefile
@@ -34,6 +34,11 @@
@mkdir -p bin
$(CCEVAL) generated/mhs.c -o bin/mhs
+# Compile mhs from distribution, with C compiler
+bin/cpphs: src/runtime/*.c src/runtime/config*.h #generated/mhs.c
+ @mkdir -p bin
+ $(CCEVAL) generated/cpphs.c -o bin/cpphs
+
# Compile combinator evaluator
bin/mhseval: src/runtime/*.c src/runtime/config*.h
@mkdir -p bin
--- a/MicroHs.cabal
+++ b/MicroHs.cabal
@@ -1,15 +1,15 @@
cabal-version: 3.0
name: MicroHs
-version: 0.9.5.0
-synopsis: A compiler for a subset of Haskell
+version: 0.9.6.0
+synopsis: A compiler for Haskell
license: Apache-2.0
license-file: LICENSE
-copyright: 2023 Lennart Augustsson
+copyright: 2023,2024 Lennart Augustsson
category: language
author: lennart@augustsson.net
maintainer: lennart@augustsson.net
stability: experimental
-description: A compiler for a subset of Haskell.
+description: A compiler for an extended subset of Haskell-2010.
The compiler translates to combinators and can compile itself.
build-type: Simple
--- a/README.md
+++ b/README.md
@@ -32,7 +32,7 @@
The compiler can also be used with emscripten to produce JavaScript, see `Makefile.emscripten`.
## Language
-The language is an extended subset of Haskell-98.
+The language is an extended subset of Haskell-2010.
Differences:
* There is only deriving for `Eq`, `Ord`, `Show`, and `Typeable`.
@@ -124,7 +124,7 @@
## Compiler
The compiler is written in Micro Haskell.
-It takes a name of a module and compiles to a target (see below).
+It takes a name of a module (or a file name) and compiles to a target (see below).
This module should contain the function `main` of type `IO ()` and
it will be the entry point to the program.
--
⑨