-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add inlining directives for data types
- Loading branch information
1 parent
bdef8b5
commit 9202dfc
Showing
8 changed files
with
1,066 additions
and
16 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
backend-es/test/snapshots-out/Snapshot.KnownConstructors07.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const test = f => y => { | ||
const z = f(y); | ||
return {bar: z - 2 | 0, foo: z + 1 | 0}; | ||
}; | ||
export {test}; |
1,016 changes: 1,016 additions & 0 deletions
1,016
backend-es/test/snapshots-out/Snapshot.KnownConstructors08.js
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...napshots/Snapshot.KnownConstructor07.purs → ...apshots/Snapshot.KnownConstructors07.purs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module Snapshot.KnownConstructor07 where | ||
module Snapshot.KnownConstructors07 where | ||
|
||
import Prelude | ||
|
||
|
16 changes: 16 additions & 0 deletions
16
backend-es/test/snapshots/Snapshot.KnownConstructors08.purs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
-- @inline Data.Generic.Rep.Sum always | ||
-- @inline Data.Show.Generic.genericShowConstructor arity=2 | ||
-- @inline export genericTest.from arity=1 | ||
module Snapshot.KnownConstructors08 where | ||
|
||
import Prelude | ||
|
||
import Data.Generic.Rep (class Generic) | ||
import Data.Show.Generic (genericShow) | ||
|
||
data Test = A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ||
|
||
derive instance genericTest :: Generic Test _ | ||
|
||
instance Show Test where | ||
show = genericShow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters