This repository was archived by the owner on Oct 5, 2022. It is now read-only.
Other modules are not loaded #71
Open
Description
Extension is set to use cabal-v2
Running cabal v2 repl in terminal correctly loads other modules.
When opening the extension following message is shown:
These modules are needed for compilation but not listed in your .cabal file's other-modules:
OS.Linux.NixOS
/home/neo/Projects/haskell-editor-setup/src/Main.hs: 70, 56: error: • Couldn't match type ‘Action -> IO ()’
with ‘Language.Javascript.JSaddle.Types.JSContextRef’
Expected type: Sub Action
Actual type: Language.Javascript.JSaddle.Types.JSContextRef
-> JSM ()
• In the second argument of ‘($)’, namely ‘runJSM nixOsAtom’
In the expression: effectSub model $ runJSM nixOsAtom
In an equation for ‘updateModel’:
updateModel Install model = effectSub model $ runJSM nixOsAtom</div><div>/home/neo/Projects/haskell-editor-setup/src/Main.hs: 70, 63: error: • Couldn't match expected type ‘JSM ()’
with actual type ‘Sink action0 -> IO ()’
• Probable cause: ‘nixOsAtom’ is applied to too few arguments
In the first argument of ‘runJSM’, namely ‘nixOsAtom’
In the second argument of ‘($)’, namely ‘runJSM nixOsAtom’
In the expression: effectSub model $ runJSM nixOsAtom
Metadata
Metadata
Assignees
Labels
No labels