Skip to content

Commit

Permalink
remove temporary fix in SpecialTreatment
Browse files Browse the repository at this point in the history
  • Loading branch information
m-yac committed Mar 17, 2023
1 parent 63db8c6 commit f51b683
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -589,10 +589,9 @@ sawCorePreludeSpecialTreatmentMap configuration =

escapeIdent :: String -> String
escapeIdent str
| all okChar strR = strR
| otherwise = "Op_" ++ zEncodeString str
| all okChar str = str
| otherwise = "Op_" ++ zEncodeString str
where
strR = map (\c -> if c `elem` ("#" :: String) then '_' else c) str
okChar x = isAlphaNum x || x `elem` ("_'" :: String)

zipSnippet :: String
Expand Down

0 comments on commit f51b683

Please sign in to comment.