Code Monkey home page Code Monkey logo

uhc-util's People

Contributors

atzedijkstra avatar ivogabe avatar jbransen avatar noughtmare avatar phile314 avatar tiborintelsoft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

uhc-util's Issues

Strictness of "sortOn" has changed with GHC 7.10

UHC.Util.Utils.sortOn uses the builtin Data.List.sortOn with GHC 7.10 or later. On earlier GHCs, an own custom implementation is used. See https://github.com/UU-ComputerScience/uhc-util/blob/master/src/UHC/Util/Utils.hs#L252-257 .

These two implementations have slightly different strictness, where the Data.List.sortOn version seems to be slightly more strict.

This causes a shuffle error when compiling UHC, see http://hydra.cryp.to/build/787325/nixlog/3/raw . The call to sortOn causing the
problem is at https://github.com/UU-ComputerScience/shuffle/blob/master/src/UHC/Shuffle/Common.hs#L373-382 .

I see two possible solutions:

  1. Use the old custom sortOn implementation also for newer GHC versions
  2. Fix call sites to not rely on the lazyness of sortOn.
    There are 19 calls to sortOn in UHC plus 2 more in shuffle, but I have no idea if
    any of them rely on the lazyness of sortOn.

@atzedijkstra I prefer the first solution, as hunting down problems with
lazyness/strictness isn't that much fun. Which option do you prefer?

( see also UU-ComputerScience/shuffle#4 .)

Missing UHC/Util/Hashable.hs

I couldn't install the development version of the library:

$ cabal install
...
cabal: can't find source for UHC/Util/Hashable in src, dist/build/autogen
Failed to install uhc-util-0.1.5.1

Missing support for GHC 8.0.1

Edit (2016-02-13): I couldn't install using GHC 8.0.1 RC 1 RC 2:

$ cabal unpack uhc-util
$ cd uhc-util-0.1.6.3
$ cabal sandbox init
$ cabal install
...
trying: fclabels-2.0.2.4 (dependency of uhc-util-0.1.6.3)
next goal: template-haskell (dependency of fclabels-2.0.2.4)
rejecting: template-haskell-2.11.0.0/installed-2.1... (conflict: fclabels =>
...

The first blocking issue is sebastiaanvisser/fclabels#27.

Repository name

If the library is called uhc-util why this repository hasn't the same name?

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.