Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    jhegedus42
    @jhegedus42
    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
    then in ProjectB I would like to see the definition of something declared in ProjectC, will that work?
    if not, then is there a way to make that work?
    if i generate tags for ProjectB separately?
    jhegedus42
    @jhegedus42
    is there some workaround for this?
    does it help if i generate tags by hand?
    jhegedus42
    @jhegedus42
    @aloiscochard ok, i was playing around with codex a bit and it seems that indeed recursive tag generations are not supported
    jhegedus42
    @jhegedus42
    I've submitted an issue I hope it is useful aloiscochard/codex#41
    jhegedus42
    @jhegedus42
    @aloiscochard does codex support cabal packages that are installed from github sources ?
    it does not seem to work for ghcjs-jquery
    Aloïs Cochard
    @aloiscochard
    @jhegedus42 one work around, would be to add ProjectC as a dependency of ProjectA, and then re-run codex update
    @jhegedus42 codex does support source dependencies, as long as you add them in the sandbox
    so if you use a project which is not in cabal packages, but you add it using add-source in your sandbox, codex should deal with it correctly
    Thanks for the issue, it should not be that hard to had a flag to support transitive deps... not sure when I'll have time to work on it though.
    Let me know how it goes for ghcjs-jquery as source dependency
    jhegedus42
    @jhegedus42
    many thanks for the info @aloiscochard
    Rúnar
    @runarorama
    How do I use codex with Stack?
    like if I have multiple subprojects, each with their own cabal
    Aloïs Cochard
    @aloiscochard
    @runarorama hi Runar! It should support this usecase, by considering them "in the workspace", did you had specific issue?
    Aloïs Cochard
    @aloiscochard
    good to see you think about using codex at your new job though ;)
    Rúnar
    @runarorama
    @aloiscochard yeah, it just complains that there is no .cabal
    Which is correct. There isn't one in the root dir