> NO, because this will lead again to non-upgradability hell. other > libraries will need to import these types from different places > depending on GHC version where they are runned Ok, so how about a new module in base for Windows API error handling? E.g. a Foreign.C.Error.Win32 module which resembles Foreign.C.Error.