Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Aloïs Cochard
    @aloiscochard
    @jhegedus42 hi, this error is coming straight from cabal (codex use it as a library), when trying to read the package definition of one of the dependency
    @jhegedus42 you could try to clean your hackage cache, in ~/.cabal/packages/hackage.haskell.org/
    ideally, codex should tell you which dep failed to load
    jhegedus42
    @jhegedus42
    ok, thanks
    I'm using nixos
    does codex work with nix ?
    or nix os ?
    Aloïs Cochard
    @aloiscochard
    @jhegedus42 I'm not using nixos, but I am using nix for haskell developement on my archlinux os
    it work fine
    maybe with nixos... the hackage cache is dealt differently, is it at the same place ?
    ~/.cabal/packages/hackage.haskell.org/
    jhegedus42
    @jhegedus42
    i have a look
    thanks
    Aloïs Cochard
    @aloiscochard
    np
    jhegedus42
    @jhegedus42
    we have this meetup going on right now, I should report back on this issue in a few days, http://www.meetup.com/Helsinki-Functional-Reactive-Programming-Meetup/events/223555438/
    I cannot concentrate on two separate things
    i was trying to setup codex for the meetup
    Aloïs Cochard
    @aloiscochard
    @jhegedus42 but even with this error, codex should generate the codex file by finding the dependencies on hackage
    (if all the libs you are using in your project are published on hackage)
    I tried to clone your repo (https://github.com/ryantrinkle/try-reflex) but there is no file in reflex-todomvc, if you push your changes I can give it a try
    jhegedus42
    @jhegedus42
    thanks
    i look into it right now
    the develop branch
    jhegedus42
    @jhegedus42
    @aloiscochard i have some error with this cabal file
    1 -- Initial ghcjs-jquery.cabal generated by cabal init. For further-
    2 -- documentation, see http://haskell.org/cabal/users-guide/
    3
    4 name: ghcjs-jquery
    5 version: 0.1.0.0
    6 homepage: http://github.com/ghcjs/ghcjs-jquery
    7 license: MIT
    8 license-file: LICENSE
    9 author: Luite Stegeman
    10 maintainer: stegeman@gmail.com
    11 category: Web
    12 build-type: Simple
    13 cabal-version: >=1.10
    14 extra-source-files: JavaScript/JQuery/nonghcjs.txt
    15
    16 library
    17 js-sources: jsbits/makeListener.js, jquery/jquery-1.11.1.js
    18 ghcjs-options: -O2
    19 exposed-modules: JavaScript.JQuery
    20 JavaScript.JQuery.Internal
    21 build-depends: base ==4.7.*,
    22 data-default,
    23 ghcjs-base,
    24 ghcjs-dom,
    25 text
    26
    27 default-language: Haskell2010
    28 include-dirs: JavaScript/JQuery
    jhegedus42
    @jhegedus42
    it gives me :

    ghc@ac49a96993e9:~/ghcjs-jquery$ vi JavaScript/JQuery.hs

    cabal: user error (Saved package config file seems to be corrupt. Try re-running the 'configure' command.)
    codex: warning falling back on dependency resolution using hackage
    Updating ghcjs-jquery-0.1.0.0

    jhegedus42
    @jhegedus42
    @aloiscochard does codex generate tags also for the dependencies of the dependencies ?
    jhegedus42
    @jhegedus42
    say i have a cabal project A which depends on a cabal project B which depends on cabal project C
    so when a tag from project A brings me to a source file in project B and then look up the definition of an identifier in project B which was imported from project C, will it work ?
    @aloiscochard ^ ?
    it seems to be that it does not work
    at least now that i have tried codex on https://github.com/ghcjs/ghcjs-jquery
    then it does not work
    but i can look up the definition of JQuery for example
    in here
    Tobias Pflug
    @gilligan
    @aloiscochard Get in contact with me via mail or twitter asap please
    jhegedus42
    @jhegedus42
    any ideas about the dependencies of dependencies question ?
    @aloiscochard ?
    Aloïs Cochard
    @aloiscochard
    @jhegedus42 sorry for late reply! Yes it should work, but maybe the dependency in this is transitive
    By default codex does not handle transitive dependencies, but this could be added
    That have a massive impact though, so it should be behind a flag
    Please file an issue if you want to see this feature added, thank you!
    (I realize a message was missing... Before 'that have a...' I wrote "By default codex does not handle transitive dependencies, but this could be added")
    jhegedus42
    @jhegedus42
    thanks @aloiscochard , so basically if ProjectA depends on ProjectB which depends on ProjectC then if I generate tags for projectA then I cannot jump to definitions which are defined in ProjectC ? is that correct?
    so say, first I follow a tag from ProjectA to ProjectB