<div dir="ltr">Hi,<div><br></div><div>I did try to follow your steps to install ghc-mod via cabal in Windows. But i believe cabal package that i installed within atom ide is not working fine. When so ever i am trying to install a dependency using cabal within atom ide it gives the following error:</div><div><br></div><div><div>[Enter steps to reproduce below:]</div><div><br></div><div>1. ...</div><div>2. ...</div><div><br></div><div>**Atom Version**: 1.7.4</div><div>**System**: Microsoft Windows 10 Pro</div><div>**Thrown From**: [cabal](<a href="https://github.com/edsko/atom-cabal">https://github.com/edsko/atom-cabal</a>) package, v0.0.17</div><div><br></div><div><br></div><div>### Stack Trace</div><div><br></div><div>Uncaught TypeError: path must be a string</div><div><br></div><div>```</div><div>At fs.js:856</div><div><br></div><div>TypeError: path must be a string</div><div>    at TypeError (native)</div><div>    at Object.fs.readdirSync (fs.js:856:18)</div><div>    at Object.fs.readdirSync (ATOM_SHELL_ASAR.js:497:28)</div><div>    at containsCabalFile (file:///C:/Users/Balraj Singh/.atom/packages/cabal/lib/cabal.coffee:263:17)</div><div>    at findCabalFile (file:///C:/Users/Balraj Singh/.atom/packages/cabal/lib/cabal.coffee:248:13)</div><div>    at Object.module.exports.Cabal.cabalInstallDeps (file:///C:/Users/Balraj Singh/.atom/packages/cabal/lib/cabal.coffee:97:30)</div><div>    at atom-workspace.subscriptions.add.atom.commands.add.cabal:install-dependencies (file:///C:/Users/Balraj Singh/.atom/packages/cabal/lib/cabal.coffee:39:8)</div><div>    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\Balraj Singh\AppData\Local\atom\app-1.7.4\resources\app.asar\src\command-registry.js:260:29)</div><div>    at CommandRegistry.handleCommandEvent (C:\Users\Balraj Singh\AppData\Local\atom\app-1.7.4\resources\app.asar\src\command-registry.js:3:61)</div><div>    at CommandRegistry.module.exports.CommandRegistry.dispatch (C:\Users\Balraj Singh\AppData\Local\atom\app-1.7.4\resources\app.asar\src\command-registry.js:160:19)</div><div>    at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (C:\Users\Balraj Singh\AppData\Local\atom\app-1.7.4\resources\app.asar\src\atom-environment.js:1100:28)</div><div>    at EventEmitter.outerCallback (C:\Users\Balraj Singh\AppData\Local\atom\app-1.7.4\resources\app.asar\src\application-delegate.js:314:25)</div><div>    at emitTwo (events.js:87:13)</div><div>    at EventEmitter.emit (events.js:172:7)</div><div>```</div><div><br></div><div>### Commands</div><div><br></div><div>```</div><div>     -9:33.3.0 cabal:install-dependencies (atom-text-editor.editor.is-focused)</div><div>     -8:30.9.0 cabal:build-and-install (atom-text-editor.editor.is-focused)</div><div>  2x -7:50.9.0 cabal:install-dependencies (atom-text-editor.editor.is-focused)</div><div>     -4:40.6.0 command-palette:toggle (atom-text-editor.editor.is-focused)</div><div>     -4:13.5.0 core:select-all (atom-text-editor.editor.mini.is-focused)</div><div>     -4:12.6.0 core:paste (atom-text-editor.editor.mini.is-focused)</div><div>     -4:11 core:confirm (atom-text-editor.editor.mini.is-focused)</div><div>     -0:08.6.0 cabal:install-dependencies (atom-text-editor.editor.is-focused)</div><div>```</div><div><br></div><div>### Config</div><div><br></div><div>```json</div><div>{}</div><div>```</div><div><br></div><div>### Installed Packages</div><div><br></div><div>```coffee</div><div># User</div><div>cabal, v0.0.17</div><div><br></div><div># Dev</div><div>No dev packages</div><div>```</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 6, 2016 at 2:59 AM, Jonne Ransijn <span dir="ltr"><<a href="mailto:yoyoyonny@gmail.com" target="_blank">yoyoyonny@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><p dir="ltr">First you need the Haskell Platform (I would asume you already have it installed?)</p>
<p dir="ltr">Run 'cabal install ghc-mod'.</p>
</span><p dir="ltr">If you have cabal, it should now have installed ghc-mod. Now, if you run 'which ghc-mod' (or 'where ghc-mod', or 'whereis ghc-mod', depending on your system) you will get a path to put in ghcModPath.</p>
</blockquote></div><br></div>