Created
September 2, 2020 15:54
-
-
Save aratama/3303027fdbc2e726702dcc91bfa7f0c2 to your computer and use it in GitHub Desktop.
reflectSymbol
This file contains hidden or 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
module Main where | |
import Prelude | |
import Effect (Effect) | |
import Data.Foldable (fold) | |
import TryPureScript (p, text, render) | |
import Data.Symbol (SProxy(..), reflectSymbol) | |
type T = SProxy "1" | |
type S = SProxy "2" | |
main = do | |
render $ fold [ | |
p (text $ reflectSymbol (SProxy :: T)), | |
p (text $ reflectSymbol (SProxy :: S)) | |
] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment