Giter Site home page Giter Site logo

Comments (5)

dan-t avatar dan-t commented on June 10, 2024

from cabal-lenses.

sboosali avatar sboosali commented on June 10, 2024

great!

from cabal-lenses.

sboosali avatar sboosali commented on June 10, 2024

http://packdeps.haskellers.com/reverse/cabal-lenses

since you've authored both reverse dependencies (i.e. breakages can be handled), would you like me to make it build without warnings under -Wall on ghc 7.10.1? e.g.

lib/CabalLenses/Version.hs:12:1:
Warning:The import of Control.Applicativeis redundant except perhaps to import instances fromControl.Applicative 

it would of course break the build on earlier compiler versions.

either way, I think it needs a major version bump for the updated Cabal version.

from cabal-lenses.

dan-t avatar dan-t commented on June 10, 2024

Hi Sam,

On Thu, Oct 15, 2015 at 07:53:06AM -0700, Sam Boosalis wrote:

since you've authored both reverse dependencies (i.e. breakages can be
handled), would you like me to make it build without warnings under -Wall on
ghc 7.10.1? e.g.

Just -W is enough.

lib/CabalLenses/Version.hs:12:1:
Warning:The import of Control.Applicativeis redundant except perhaps to import instances fromControl.Applicative

it would of course break the build on earlier compiler versions.

You can use:

#if GLASGOW_HASKELL < 710
import Control.Applicative ((<$>))
#endif

either way, I think it needs a major version bump for the updated Cabal
version.

Why that?

Greetings,
Daniel

from cabal-lenses.

sboosali avatar sboosali commented on June 10, 2024
  1. cool, haven't used CPP before. that seems better.

also to avoid shadowing warnings, I hoisted some helper functions to the top
level, but didn't export them. (I'll put all this in the commit message, where it's in context). I've been
bitten by name shadowing before (after a re-factoring), so I think it's a
good idea anyway.

also, added an explicit PatternGuards extension to silence another warning.

  1. oops, I misread cabal's latest version (1.22.4) as 1.24

On Thu, Oct 15, 2015 at 11:28 AM, Daniel Trstenjak <[email protected]

wrote:

Hi Sam,

On Thu, Oct 15, 2015 at 07:53:06AM -0700, Sam Boosalis wrote:

since you've authored both reverse dependencies (i.e. breakages can be
handled), would you like me to make it build without warnings under
-Wall on
ghc 7.10.1? e.g.

Just -W is enough.

lib/CabalLenses/Version.hs:12:1:
Warning:The import of Control.Applicativeis redundant except perhaps to
import instances fromControl.Applicative

it would of course break the build on earlier compiler versions.

You can use:

#if GLASGOW_HASKELL < 710
import Control.Applicative ((<$>))
#endif

either way, I think it needs a major version bump for the updated Cabal
version.

Why that?

Greetings,
Daniel


Reply to this email directly or view it on GitHub
#4 (comment).

(this message was composed with dictation: charitably interpret typos)Sam
Boosalis

from cabal-lenses.

Related Issues (6)

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.