on master help sign in
compute a flexibility mark, just so it's easier to turn on and off later
commit9bba47c791441019b7354d9ed4804493bc3ec328 authorEvan Czaplicki <info@elm-lang.org> dateSat 10 Aug 2013, 14:18 (13 years ago) parent0f400da
1 file changed+5−1
compiler/Type/Type.hs+5−1
compiler/Type/Type.hs+5−1
@@ -277,7 +277,11 @@ addNames value = do
277277 Is Number -> (Just $ "number" ++ replicate a '\'', (vars, a+1, b, c))
278278 Is Comparable -> (Just $ "comparable" ++ replicate b '\'', (vars, a, b+1, c))
279279 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 -> "#"
281285
282286
283287type CrawlState = ([String], Int, Int, Int)