git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Clean up header comments
commit1d078f41061383f4cb836f8257e44cbf1422a038 authorAndy Arvanitis <andyarvanitis@gmail.com> dateWed 8 Aug 2018, 20:50 (8 years ago) parentade15d3
5 files changed+17−34
LICENSE+1−1 runtime/purescript.h+14 src/CodeGen/Cpp/Optimizer.hs+1−19 src/CodeGen/Cpp/Printer.hs+1−1 src/Tests.hs−13
LICENSE+1−1
@@ -1,4 +1,4 @@
1−Copyright Author name here (c) 2018
1+Copyright Andy Arvanitis (c) 2018
22
33All rights reserved.
44
runtime/purescript.h+14
@@ -1,3 +1,17 @@
1+///////////////////////////////////////////////////////////////////////////////
2+//
3+// Module : purescript.h
4+// Copyright : (c) Andy Arvanitis 2018
5+// License : BSD
6+//
7+// Maintainer : Andy Arvanitis
8+// Stability : experimental
9+// Portability :
10+//
11+// Basic types and functions to support purescript-to-C++ rendering
12+//
13+///////////////////////////////////////////////////////////////////////////////
14+//
115#ifndef purescript_H
216#define purescript_H
317
src/CodeGen/Cpp/Optimizer.hs+1−19
@@ -1,22 +1,4 @@
1−-- | This module optimizes code in the simplified-Objective-C intermediate representation.
2−--
3−-- The following optimizations are supported:
4−--
5−-- * Collapsing nested blocks
6−--
7−-- * Tail call elimination
8−--
9−-- * Inlining of (>>=) and ret for the Eff monad
10−--
11−-- * Removal of unnecessary thunks
12−--
13−-- * Eta conversion
14−--
15−-- * Inlining variables
16−--
17−-- * Inline Prelude.($), Prelude.(#), Prelude.(++), Prelude.(!!)
18−--
19−-- * Inlining primitive Objective-C operators
1+-- | This module optimizes code in the intermediate representation.
202module CodeGen.Cpp.Optimizer (optimize) where
213
224import Prelude.Compat
src/CodeGen/Cpp/Printer.hs+1−1
@@ -1,4 +1,4 @@
1−-- | Pretty printer for the Objective-C AST
1+-- | Pretty printer for the AST
22module CodeGen.Cpp.Printer
33 ( prettyPrintCpp
44 , prettyPrintCpp1
src/Tests.hs−13
@@ -1,16 +1,3 @@
1−-------------------------------------------------------------------------------
2−--
3−-- Module : Main
4−-- Copyright : (c) 2015 Andy Arvanitis and other contributors
5−-- License : MIT
6−--
7−-- Maintainer : Andy Arvanitis
8−-- Stability : experimental
9−-- Portability :
10−--
11−--
12−--
13−-------------------------------------------------------------------------------
141module Tests (runTests) where
152
163import Prelude.Compat