Skip to content
  • Andreas Klebinger's avatar
    a9f23793
    Move absentError into ghc-prim. · a9f23793
    Andreas Klebinger authored and Marge Bot's avatar Marge Bot committed
    When using -fdicts-strict we generate references to absentError while
    compiling ghc-prim. However we always load ghc-prim before base so this
    caused linker errors.
    
    We simply solve this by moving absentError into ghc-prim. This does mean
    it's now a panic instead of an exception which can no longer be caught.
    But given that it should only be thrown if there is a compiler error
    that seems acceptable, and in fact we already do this for
    absentSumFieldError which has similar constraints.
    a9f23793
    Move absentError into ghc-prim.
    Andreas Klebinger authored and Marge Bot's avatar Marge Bot committed
    When using -fdicts-strict we generate references to absentError while
    compiling ghc-prim. However we always load ghc-prim before base so this
    caused linker errors.
    
    We simply solve this by moving absentError into ghc-prim. This does mean
    it's now a panic instead of an exception which can no longer be caught.
    But given that it should only be thrown if there is a compiler error
    that seems acceptable, and in fact we already do this for
    absentSumFieldError which has similar constraints.
Loading