Closed
Description
Using "purescript": "^0.13.6"
and package set psc-0.13.6-20200423
Here's my foot gun:
main :: Effect Unit
main = do
Console.log "1"
let x = union {y: 5} {y: "5"}
Console.log "2"
let s = show x
Console.log "3"
Console.log s
Causes TypeError: s.replace is not a function
after logging 2
.
Changing to let x = union {y: "5"} {y: 5}
gets rid of error and produces expected representation: { y: "5", y: 5 }
Metadata
Metadata
Assignees
Labels
No labels