mirror of
https://github.com/rowtype-yoga/purescript-literals.git
synced 2024-12-01 20:27:46 +03:00
Add Boolean literals
This commit is contained in:
parent
69effa8fa7
commit
fa1b6a1522
13
src/Literals/Boolean.purs
Normal file
13
src/Literals/Boolean.purs
Normal file
@ -0,0 +1,13 @@
|
||||
module Literals.Boolean where
|
||||
|
||||
import Unsafe.Coerce (unsafeCoerce)
|
||||
|
||||
data True
|
||||
data False
|
||||
|
||||
true_ :: True
|
||||
true_ = unsafeCoerce true
|
||||
|
||||
false_ :: False
|
||||
false_ = unsafeCoerce false
|
||||
|
Loading…
Reference in New Issue
Block a user