Today, I updated the Grapefruit FRP library once again. The main improvements are as follows:
-
Grapefruit is now compatible with GHC 8.0.1.
-
The GTK+ UI backend of Grapefruit uses GTK+ 3 now.
The new Grapefruit version is 0.1.0.6. To install or update, you can use the following commands:
cabal update
cabal install grapefruit-ui-gtk grapefruit-examples
As I wrote earlier, Grapefruit 0.1 is actually a phase-out model, which I only update to work with newer GHC and library versions. Starting from March, I will work again on the new Grapefruit, which will be based on my research about FRP semantics. I expect that this new theoretical foundation will lead to a more powerful library with a more sensible interface.
FYI 0.1.0.6 doesn’t install on Ubuntu 16.10:
LikeLike
Similar error installing from cabal in fedora (freshly downloaded and installed today).
So I thought I’d get the source and see if I could fix it but I get this problem when running the command from https://hackage.haskell.org/package/grapefruit-ui-gtk:
LikeLike
I added the the missing tag meanwhile; so getting the correct repository state this way should work now.
LikeLike
I had a report about exactly this problem a few weeks ago. It was and still is a bit of a mystery for me where this problem comes from. The person who reported this issue eventually used GHC 8.0.1. If this is an option for you, you can give this a try.
I will look into this issue to see whether I can solve it. I am using Ubuntu 16.04, which also contains version 7.10.3 of GHC, but usually I use GHC 8.0.1 installed outside the Ubuntu package system.
LikeLike
Apparently, GHC 7.10.3 has a bug that results in an
ArrowAddReader
instantiation not being found. I have added a workaround, so that Grapefruit can also be built with GHC 7.10.3 now. The updated version is available in the repository and on the HackageDB under version number 0.1.0.7.LikeLike
Pingback: Grapefruit now compatible with GHC 7.10.3 | Wolfgang Jeltsch