Skip to content

Commit

Permalink
Use IsSymbol Ident
Browse files Browse the repository at this point in the history
  • Loading branch information
jborkowski committed Sep 5, 2023
1 parent 4e1934b commit 60bf482
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/Language/PureScript/Constants/Libs.hs
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{-# LANGUAGE BlockArguments #-}
{-# LANGUAGE TemplateHaskell #-}

-- | Various constants which refer to things in the Prelude and other core libraries
module Language.PureScript.Constants.Libs where

import Protolude qualified as P

import Data.String (IsString)
import Language.PureScript.PSString (PSString)
import Language.PureScript.Constants.TH qualified as TH
import Language.PureScript.PSString (PSString)

-- Core lib values

Expand Down Expand Up @@ -166,7 +167,7 @@ $(TH.declare do

TH.mod "Data.Symbol" do
TH.cls "IsSymbol"
TH.asIdent do TH.var "IsSymbolDict"
TH.asIdent do TH.var "IsSymbol"

-- purescript-arrays

Expand Down
2 changes: 1 addition & 1 deletion src/Language/PureScript/CoreFn/Optimizer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ optimizeRecordGetField
(App _
(Var _ C.I_hasFieldRecord)
(App _
(Var _ C.I_IsSymbolDict)
(Var _ C.I_IsSymbol)
(Literal _ (ObjectLiteral
[ ("reflectSymbol", Abs _ _
(Literal _ (StringLiteral label)))
Expand Down

0 comments on commit 60bf482

Please sign in to comment.