Skip to content

Instantly share code, notes, and snippets.

@aratama
Created September 2, 2020 15:54
Show Gist options
  • Save aratama/3303027fdbc2e726702dcc91bfa7f0c2 to your computer and use it in GitHub Desktop.
Save aratama/3303027fdbc2e726702dcc91bfa7f0c2 to your computer and use it in GitHub Desktop.
reflectSymbol
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