Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Simon Marlow's avatar
    5cbd9a2f
    dsCImport (CLabel): drop foralls when checking for FunPtr · 5cbd9a2f
    Simon Marlow authored
    We were mislabelling some foreign imports as IsData rather than
    IsFunction, because the type was forall a. FunPtr (... a ...).
    
    Eventually this gave rise to these obscure error when compiling
    unregisterised:
    
    libraries/base/Foreign/Marshal/Alloc.hc:473:0:
         warning: built-in function ‘free’ declared as non-function
    
    libraries/base/Foreign/Marshal/Alloc.hc:1004:0:
         error: ‘free’ redeclared as different kind of symbol
    5cbd9a2f
    History
    dsCImport (CLabel): drop foralls when checking for FunPtr
    Simon Marlow authored
    We were mislabelling some foreign imports as IsData rather than
    IsFunction, because the type was forall a. FunPtr (... a ...).
    
    Eventually this gave rise to these obscure error when compiling
    unregisterised:
    
    libraries/base/Foreign/Marshal/Alloc.hc:473:0:
         warning: built-in function ‘free’ declared as non-function
    
    libraries/base/Foreign/Marshal/Alloc.hc:1004:0:
         error: ‘free’ redeclared as different kind of symbol
Code owners
Assign users and groups as approvers for specific file changes. Learn more.