on master help sign in
compute a flexibility mark, just so it's easier to turn on and off later
9bba47cEvan Czaplicki
compiler/Type/Type.hs+5−1
@@ -277,7 +277,11 @@ addNames value = do
277 Is Number -> (Just $ "number" ++ replicate a '\'', (vars, a+1, b, c))
277 Is Number -> (Just $ "number" ++ replicate a '\'', (vars, a+1, b, c))
278 Is Comparable -> (Just $ "comparable" ++ replicate b '\'', (vars, a, b+1, c))
278 Is Comparable -> (Just $ "comparable" ++ replicate b '\'', (vars, a, b+1, c))
279 Is Appendable -> (Just $ "appendable" ++ replicate c '\'', (vars, a, b, c+1))
279 Is Appendable -> (Just $ "appendable" ++ replicate c '\'', (vars, a, b, c+1))
280− _ -> (Just $ head vars, (tail vars, a, b, c))
280+ other -> (Just $ head vars, (tail vars, a, b, c))
281+ where mark = case other of
282+ Flexible -> ""
283+ Rigid -> "!"
284+ Constant -> "#"
281
285
282
286
283type CrawlState = ([String], Int, Int, Int)
287type CrawlState = ([String], Int, Int, Int)