Giter Club home page Giter Club logo

cabal-query's Introduction

SWUbanner

cabal-query's People

Contributors

sol avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

sol

cabal-query's Issues

unused imports in example

Sample program provided in documentation contains 5 unused imports: Distribution.Compiler, Distribution.ModuleName, Distribution.Package, Distribution.Version, and Language.Haskell.Extension. Please consider removing them.

And hlint suggests replacing putStrLn . show with print.

Cheers.

[resolved] provided example does not compile

Example from documentation fails to compile on my machine:

Prelude> :load "/tmp/example.hs"
[1 of 1] Compiling Main             ( /tmp/example.hs, interpreted )

/tmp/example.hs:18:8:
    Couldn't match expected type `B.ByteString'
           against inferred type `bytestring-0.9.1.4:Data.ByteString.Lazy.Internal.ByteString'
    In the second argument of `(.)', namely
        `queryIndex (Not (Id (== GPL)) :& Not (Id (== BSD3)))'
    In the second argument of `(>>=)', namely
        `mapM_
           (putStrLn
          .   show . (\ x -> (display $ package x, display $ license x)))
       . queryIndex (Not (Id (== GPL)) :& Not (Id (== BSD3)))'
    In the expression:
            (head `fmap` getArgs) >>= B.readFile
        >>= mapM_
              (putStrLn
             .   show . (\ x -> (display $ package x, display $ license x)))
          . queryIndex (Not (Id (== GPL)) :& Not (Id (== BSD3)))
Failed, modules loaded: none.

I have two bytestring's installed. Could this cause the above problem?

$ ghc-pkg list
/var/lib/ghc-6.10.4/./package.conf:
    Cabal-1.6.0.3, HUnit-1.2.0.3, QuickCheck-2.1.0.1, X11-1.4.6.1,
    X11-xft-0.3, array-0.2.0.0, base-3.0.3.1, base-4.1.0.0,
    bytestring-0.9.1.4, containers-0.2.0.1, directory-1.0.0.3,
    extensible-exceptions-0.1.1.0, filepath-1.1.0.2, (ghc-6.10.4),
    ghc-prim-0.1.0.0, haskell98-1.0.1.0, hpc-0.5.0.3, integer-0.1.0.1,
    mtl-1.1.0.2, network-2.2.1.4, old-locale-1.0.0.1, old-time-1.0.0.2,
    packedstring-0.1.0.1, parsec-2.1.0.1, pretty-1.0.1.0,
    process-1.0.1.1, random-1.0.0.1, rts-1.0, syb-0.1.0.1,
    template-haskell-2.3.0.1, time-1.1.2.4, unix-2.3.2.0,
    utf8-string-0.3.5, xmonad-0.9, xmonad-contrib-0.9
/home/vvv/.ghc/i386-linux-6.10.4/package.conf:
    HTTP-4000.0.8, HTTP-4000.0.9, ListLike-1.0.1, MissingH-1.1.0.1,
    QuickCheck-1.2.0.0, bytestring-0.9.1.5, cabal-query-0.1, cpphs-1.9,
    derive-2.0.1, haskell-src-exts-1.1.4, hslogger-1.0.7,
    iteratee-0.3.1, regex-base-0.93.1, regex-compat-0.92,
    regex-posix-0.94.1, tar-0.3.1.0, testpack-1.0.2,
    (transformers-0.1.4.0), uniplate-1.2.0.3, zlib-0.5.2.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.