Skip to content

ForeignImport coercion evaluated before typechecking

Under Windows 8.1 x64 with Haskell Platform 2014.02 and EclipseFP I got:

buildwrapper.exe: panic! (the 'impossible' happened)
  (GHC version 7.8.3 for x86_64-unknown-mingw32):
ForeignImport coercion evaluated before typechecking

on the first line of file that has: `style="font-size: 80%" Code highlighting: {{{#!haskell # LANGUAGE ForeignFunctionInterface, RankNTypes, OverloadedStrings, ScopedTypeVariables # module Persist( persistWrite, persistRead ) where

import System.Win32.Types import Graphics.Win32.GDI.Types import Foreign.C.String import Foreign.Marshal.Array import Control.Exception

foreign import ccall unsafe "SHGetFolderPathW" cSHGetFolderPathW :: HWND -> INT -> HANDLE -> DWORD -> CWString -> IO LONG ` }}}

Edited by varosi
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information