Giter Club home page Giter Club logo

lens-simple's Introduction

lens-simple

Lens-Simple makes it easier to use the combinators from the original van Laarhoven-O'Connor lens library: Russell O'Connor's lens-family package. For various reasons, O'Connor's package has a rather complicated structure; our purpose here is to ignore all this. The zoom preferred here is from Lens.Family.State.Strict. makeLenses and makeTraversals & co are re-exported from Dan Burton's lens-family-th.

lens-simple's People

Contributors

michaelt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

lens-simple's Issues

Release

Hi,

I've got a project whose test suite depends on lens-simple that I'm trying to get back into the stack nightlies. I noticed that your build didn't work on 8.0.1 and forked it, but having made no modifications of note, it built successfully, so I assume some hackage metadata changed. Anything else needed for a release of a new version of lens-simple?

warnings for missing type signatures

Hi Michael,
When I use $(makeLenses ''AnswerMap) I get warnings like:

Top-level binding with no type signature:
  unAnswerMap :: Functor f =>
                 (IM.IntMap (Map PlayerId Answer)
                  -> f (IM.IntMap (Map PlayerId Answer)))
                 -> AnswerMap -> f AnswerMap

I tried adding a type signature before the makeLenses, but GHC complains:

The type signature for ‘unAnswerMap’ lacks an accompanying binding

I like to write my code so that it compiles without warnings. I know I could turn the off with

{-# OPTIONS_GHC -fno-warn-missing-signatures #-}

but I would rather not. Any suggestions?

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.