Re: Implementation idea for unboxed polymorphic types

2015-11-15 Thread Ömer Sinan Ağacan
I had started working on exactly the same thing at some point. I had a TemplateHaskell-based implementation which _almost_ worked. The problem was that the syntax was very, very heavy. Because I had to use quotes for _every_ constructor application(with explicitly passed types). (because I had a

Implementation idea for unboxed polymorphic types

2015-11-15 Thread Francesco Mazzoli
(A nicely rendered version of this email can be found at ) ## Macro types I very often find myself wanting unboxed polymorphic types (e.g. types that contain `UNPACK`ed type variables). I find it extremely frustrating that it's easier to

Re: build system issue: some changes in libraries doesn't trigger required rebuilds

2015-11-15 Thread Ben Gamari
Ömer Sinan Ağacan writes: > Hi all, > > I'm having this annoying issue all the time: Whenever a `git pull origin > master` updates a library(one of the submodules, like `Binary`) a `make` > doesn't trigger required rebuilds(e.g. it doesn't rebuild libraries and tries > to

Re: [ANNOUNCE] 7.10.3 release candidate 2 - problems compiling source on Mac OS with clang

2015-11-15 Thread Carter Schonwald
Did you install OpenSSL ?? I'll upload my better ghc build in 5 minutes. Did it end of the week and then got a bit busy On Sunday, November 15, 2015, George Colpitts wrote: > I did get compiling from source to work on the Mac. Unfortunately I'm not > sure what the

Re: [ANNOUNCE] 7.10.3 release candidate 2 - problems compiling source on Mac OS with clang

2015-11-15 Thread George Colpitts
Yes I have openssl installed $ brew upgrade openssl brew upgrade openssl Error: openssl 1.0.2d_1 already installed Thanks for uploading the new binary install, it definitely solved the problem I originally reported However it doesn't solve the HsOpenSSL problem: cabal install HsOpenSSL cabal

mac build for 7.10.3 RC

2015-11-15 Thread Carter Schonwald
here yah go! this should fix issues with my earlier build http://www.wellposed.com/opensource/ghc/releasebuild-unofficial/ghc-7.10.2.20151105-x86_64-apple-darwin.tar.bz2 $ shasum -a512 ghc-7.10.2.20151105-x86_64-apple-darwin.tar.bz2

Re: [ANNOUNCE] 7.10.3 release candidate 2 - problems compiling source on Mac OS with clang

2015-11-15 Thread George Colpitts
ghc --info ghc --info [("Project name","The Glorious Glasgow Haskell Compilation System") ,("GCC extra via C opts"," -fwrapv") ,("C compiler command","/usr/bin/gcc") ,("C compiler flags"," -m64 -fno-stack-protector") ,("C compiler link flags"," -m64") ,("Haskell CPP command","/usr/bin/gcc")

Re: [ANNOUNCE] 7.10.3 release candidate 2 - problems compiling source on Mac OS with clang

2015-11-15 Thread George Colpitts
inline On Sun, Nov 15, 2015 at 9:50 PM, Carter Schonwald < carter.schonw...@gmail.com> wrote: > did you do configure before make install or not? > > ​yes​ > On Sun, Nov 15, 2015 at 8:50 PM, Carter Schonwald < > carter.schonw...@gmail.com> wrote: > >> what does your ghc --info say? >> >> On

Re: mac build for 7.10.3 RC

2015-11-15 Thread George Colpitts
Thanks! That seems to work on my Mac as I can install packages like QuickCheck On Sun, Nov 15, 2015 at 6:17 PM, Carter Schonwald < carter.schonw...@gmail.com> wrote: > here yah go! > this should fix issues with my earlier build > >

Re: [ANNOUNCE] 7.10.3 release candidate 2 - problems compiling source on Mac OS with clang

2015-11-15 Thread George Colpitts
I cleaned up my ghc pkg problems by doing rm -fr ~/.ghc/* most packages now compile but hsopenssl still fails in the same way: Building HsOpenSSL-0.11.1.1... Preprocessing library HsOpenSSL-0.11.1.1... In file included from BN.hsc:45: cbits/HsOpenSSL.h:3:10: fatal error: 'openssl/asn1.h' file

Re: [ANNOUNCE] 7.10.3 release candidate 2 - problems compiling source on Mac OS with clang

2015-11-15 Thread Carter Schonwald
what does your ghc --info say? On Sun, Nov 15, 2015 at 7:54 PM, George Colpitts wrote: > I cleaned up my ghc pkg problems by doing > > rm -fr ~/.ghc/* > > most packages now compile but hsopenssl still fails in the same way: > > Building HsOpenSSL-0.11.1.1... >

Re: [ANNOUNCE] 7.10.3 release candidate 2 - problems compiling source on Mac OS with clang

2015-11-15 Thread Carter Schonwald
did you do configure before make install or not? On Sun, Nov 15, 2015 at 8:50 PM, Carter Schonwald < carter.schonw...@gmail.com> wrote: > what does your ghc --info say? > > On Sun, Nov 15, 2015 at 7:54 PM, George Colpitts < > george.colpi...@gmail.com> wrote: > >> I cleaned up my ghc pkg

Re: [ANNOUNCE] 7.10.3 release candidate 2 - problems compiling source on Mac OS with clang

2015-11-15 Thread George Colpitts
I did get compiling from source to work on the Mac. Unfortunately I'm not sure what the problem was. I now see a new problem, not sure if it is a ghc problem or a library problem: cabal install HsOpenSSL ... Building HsOpenSSL-0.11.1.1... Preprocessing library HsOpenSSL-0.11.1.1... In file

Re: Implementation idea for unboxed polymorphic types

2015-11-15 Thread Richard Eisenberg
After reading Francesco's original post, I immediately thought of Ömer's proposed approach, of using Template Haskell to produce the right data family instances. But I don't see why you'd need quoting at constructor calls. Couldn't you just have a type class like `PointFamily`? I'd be more