Changes between Version 3 and Version 4 of DeferErrorsToRuntime
- Timestamp:
- 12/21/11 01:03:50 (17 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeferErrorsToRuntime
v3 v4 8 8 if there are type errors in the code. Consider the following case: 9 9 {{{ 10 module Main where10 module Main where 11 11 12 a :: Int13 a = 'a'12 a :: Int 13 a = 'a' 14 14 15 main = print "b"15 main = print "b" 16 16 }}} 17 17 Even though `a` is ill-typed, it is not used in the end, so if all that we're … … 23 23 that, `a` will get transformed into 24 24 {{{ 25 $co :: Int ~# Char26 $co = ...25 $co :: Int ~# Char 26 $co = ... 27 27 28 a :: Int29 a = 'a' `cast` $co28 a :: Int 29 a = 'a' `cast` $co 30 30 }}} 31 31 The constraint solver would realize that `co` is an insoluble constraint, and
