Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Document compiler magic #3

Open
kcsongor opened this issue Apr 24, 2017 · 1 comment
Open

Document compiler magic #3

kcsongor opened this issue Apr 24, 2017 · 1 comment

Comments

@kcsongor
Copy link

kcsongor commented Apr 24, 2017

The source (and documentation) of this module doesn't make it directly clear that there's compiler magic going on in the background.
I would prefer knowing up front if a package is somehow treated specially, maybe a note in the readme?

@mwalkerwells
Copy link

mwalkerwells commented Nov 11, 2017

This is what you're talking about?

For literal symbols such as "tinsel", the compiler (version 0.10.3 onwards) will automatically solve IsSymbol instances. Therefore, the following expression would evaluate to the string "tinsel":

https://github.com/paf31/24-days-of-purescript-2016/blame/0c5311d5e60cf2d98dabbefdad748e5720bc37a5/9.markdown#L65

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants