on master help sign in
Make impossible error more specific
commite4fc35c90176749dc323cba5c30b83eb2775d658 authorEvan Czaplicki <info@elm-lang.org> dateMon 12 Aug 2013, 14:30 (13 years ago) parenta3f62bd
1 file changed+2−1
compiler/Type/State.hs+2−1
compiler/Type/State.hs+2−1
@@ -139,7 +139,8 @@ makeCopy alreadyCopied variable = do
139139 () | mark desc == alreadyCopied ->
140140 case copy desc of
141141 Just v -> return v
142− Nothing -> error "This should be impossible."
142+ Nothing -> error $ "Error copying type variable. This should be impossible." ++
143+ " Please report an error to the github repo!"
143144
144145 | rank desc /= noRank || flex desc == Constant ->
145146 return variable