git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Clean up header comments
1d078f4Andy Arvanitis
LICENSE+1−1
@@ -1,4 +1,4 @@
1−Copyright Author name here (c) 2018
1+Copyright Andy Arvanitis (c) 2018
2
2
3All rights reserved.
3All rights reserved.
4
4
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+//
1#ifndef purescript_H
15#ifndef purescript_H
2#define purescript_H
16#define purescript_H
3
17
src/CodeGen/Cpp/Optimizer.hs+1−19
@@ -1,22 +1,4 @@
1−-- | This module optimizes code in the simplified-Objective-C intermediate representation.
1+-- | This module optimizes code in the 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
20module CodeGen.Cpp.Optimizer (optimize) where
2module CodeGen.Cpp.Optimizer (optimize) where
21
3
22import Prelude.Compat
4import 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
2module CodeGen.Cpp.Printer
2module CodeGen.Cpp.Printer
3 ( prettyPrintCpp
3 ( prettyPrintCpp
4 , prettyPrintCpp1
4 , 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−-------------------------------------------------------------------------------
14module Tests (runTests) where
1module Tests (runTests) where
15
2
16import Prelude.Compat
3import Prelude.Compat