Skip to content

Commit

Permalink
use aliasedFuncName instead of direct constructorName.
Browse files Browse the repository at this point in the history
  • Loading branch information
wavewave committed Oct 21, 2019
1 parent 4c4c42e commit 8cd2473
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fficxx/lib/FFICXX/Generate/Code/HsFrontEnd.hs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import FFICXX.Generate.Code.Primitive (CFunSig(..),HsFunSig(..)
)
import FFICXX.Generate.Name (accessorName
,aliasedFuncName
,constructorName
,hsClassName
,hscAccessorName
,hscFuncName
Expand Down Expand Up @@ -93,7 +92,7 @@ genHsFrontInstNew c = do
-- cann = maybe "" id $ M.lookup (PkgMethod, constructorName c) amap
-- newfuncann = mkComment 0 cann
rhs = app (mkVar (hsFuncXformer f)) (mkVar (hscFuncName c f))
in mkFun (constructorName c) (functionSignature c f) [] rhs Nothing
in mkFun (aliasedFuncName c f) (functionSignature c f) [] rhs Nothing

genHsFrontInstNonVirtual :: Class -> [Decl ()]
genHsFrontInstNonVirtual c =
Expand Down

0 comments on commit 8cd2473

Please sign in to comment.