[Haskell-cafe] Having issue in running Haskell code in Atom
Balraj Singh
erbalrajs at gmail.com
Sun Jun 5 22:18:26 UTC 2016
Hi,
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:
[Enter steps to reproduce below:]
1. ...
2. ...
**Atom Version**: 1.7.4
**System**: Microsoft Windows 10 Pro
**Thrown From**: [cabal](https://github.com/edsko/atom-cabal) package,
v0.0.17
### Stack Trace
Uncaught TypeError: path must be a string
```
At fs.js:856
TypeError: path must be a string
at TypeError (native)
at Object.fs.readdirSync (fs.js:856:18)
at Object.fs.readdirSync (ATOM_SHELL_ASAR.js:497:28)
at containsCabalFile (file:///C:/Users/Balraj
Singh/.atom/packages/cabal/lib/cabal.coffee:263:17)
at findCabalFile (file:///C:/Users/Balraj
Singh/.atom/packages/cabal/lib/cabal.coffee:248:13)
at Object.module.exports.Cabal.cabalInstallDeps
(file:///C:/Users/Balraj Singh/.atom/packages/cabal/lib/cabal.coffee:97:30)
at
atom-workspace.subscriptions.add.atom.commands.add.cabal:install-dependencies
(file:///C:/Users/Balraj Singh/.atom/packages/cabal/lib/cabal.coffee:39:8)
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)
at CommandRegistry.handleCommandEvent (C:\Users\Balraj
Singh\AppData\Local\atom\app-1.7.4\resources\app.asar\src\command-registry.js:3:61)
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)
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)
at EventEmitter.outerCallback (C:\Users\Balraj
Singh\AppData\Local\atom\app-1.7.4\resources\app.asar\src\application-delegate.js:314:25)
at emitTwo (events.js:87:13)
at EventEmitter.emit (events.js:172:7)
```
### Commands
```
-9:33.3.0 cabal:install-dependencies
(atom-text-editor.editor.is-focused)
-8:30.9.0 cabal:build-and-install (atom-text-editor.editor.is-focused)
2x -7:50.9.0 cabal:install-dependencies
(atom-text-editor.editor.is-focused)
-4:40.6.0 command-palette:toggle (atom-text-editor.editor.is-focused)
-4:13.5.0 core:select-all (atom-text-editor.editor.mini.is-focused)
-4:12.6.0 core:paste (atom-text-editor.editor.mini.is-focused)
-4:11 core:confirm (atom-text-editor.editor.mini.is-focused)
-0:08.6.0 cabal:install-dependencies
(atom-text-editor.editor.is-focused)
```
### Config
```json
{}
```
### Installed Packages
```coffee
# User
cabal, v0.0.17
# Dev
No dev packages
```
On Mon, Jun 6, 2016 at 2:59 AM, Jonne Ransijn <yoyoyonny at gmail.com> wrote:
> First you need the Haskell Platform (I would asume you already have it
> installed?)
>
> Run 'cabal install ghc-mod'.
>
> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20160606/987bdf0e/attachment.html>
More information about the Haskell-Cafe
mailing list