[Haskell] The Point of this List

2023-05-01 Thread Dominic Steinitz
I have been subscribed to this list for over 20 years but these days all I ever see are announcements of conferences which have at best a tangential relationship with Haskell. Maybe it is time to call it a day? Dominic Steinitz domi...@steinitz.org http://idontgetoutmuch.org Twitter

Re: Glasgow-haskell-users Digest, Vol 212, Issue 5

2021-10-11 Thread Dominic Steinitz
controllable and reproducible manner. This is actually easier than it sounds: `curl https://nixos.org/nix/install | sh` and `nix-env -I ghc`. If you get the same error with that then we can try adding `iconv` explicitly. Dominic Steinitz domi...@steinitz.org http://idontgetoutmuch.org Twitter

Re: accelerate-llvm problems

2017-02-22 Thread Dominic Steinitz
No go at the moment - I am using my tiny macbook on holiday which is on too old a version of Xcode. When I try to upgrade it tells me I am out of space. I think rather than fight I will wait until I get back to a machine with more resources. > On 22 Feb 2017, at 07:02, Dominic Steinitz &l

Re: accelerate-llvm problems

2017-02-22 Thread Dominic Steinitz
with shared libraries. > > Then, install llvm-general with -fshared-llvm (or, use my fork, which the > stack.yaml files point to). > > > -Trev > > P.S. On mobile, apologies for the terse reply. > On Wed, 22 Feb 2017 at 10:34 AM, Dominic Steinitz <idontgetoutm...@gmail.com

accelerate-llvm problems

2017-02-21 Thread Dominic Steinitz
I am trying to build accelerate-llvm but getting the ghc panics below. Here’s my config > bash-3.2$ ghc-pkg list | grep llvm > ghc-pkg list | grep llvm >llvm-general-3.8.0.0 >llvm-general-pure-3.5.0.0 >llvm-general-pure-3.5.1.0 >llvm-general-pure-3.8.0.0 > bash-3.2$ ghc-pkg list

Floating Point Exceptions

2016-12-07 Thread Dominic Steinitz
ppy to have a go at it if someone could provide help and guidance. There seems to have been some discussion of it on the ghc-devs mailing list in September (https://mail.haskell.org/pipermail/ghc-devs/2016-September/date.html) but not much in the way of write up. Dominic Steinitz domi...@

Stack traces in ghci

2016-12-05 Thread Dominic Steinitz
, GHCi couldn't find the following symbol: > > hmatrixzm0zi18zi0zi0zm7aYEqJARQEvKYNyM4UGAPZZ_InternalziUtil_zdfIndexableVectorDouble_closure > This may be due to you not asking GHCi to load extra object files, > archives or DLLs needed by your current session. Restart GHCi, spe

Re: GHC Performance / Replacement for R?

2016-08-31 Thread Dominic Steinitz
sers-> | boun...@haskell.org <mailto:boun...@haskell.org>] On Behalf Of Dominic Steinitz | Sent: 25 August 2016 10:11 | To: GHC users <glasgow-haskell-users@haskell.org <mailto:glasgow-haskell-users@haskell.org>> | Subject: GHC Performance / Replacement for

GHC Performance / Replacement for R?

2016-08-25 Thread Dominic Steinitz
I am trying to use Haskell as a replacement for R but running into two problems which I describe below. Are there any plans to address the performance issues I have encountered? 1. I seem to have to jump through a lot of hoops just to be able to select the data I am interested in. {-#

Re: CMM-to-ASM: Register allocation wierdness

2016-06-16 Thread Dominic Steinitz
> Hi, I am implementing unicode normalization in Haskell. I > challenged myself to match the performance with the best C/C++ > implementation, the best being the ICU library. I am almost there, > beating it in one of the benchmarks and within 30% for others. I am > out of all application level

[Haskell] New Haddock

2016-06-06 Thread Dominic Steinitz
package/diagrams-contrib-1.3.0.7/docs/Diagrams-TwoD-Layout-Tree.html>. Dominic Steinitz domi...@steinitz.org http://idontgetoutmuch.wordpress.com ___ Haskell mailing list Haskell@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell

Re: [Haskell] Haskell Summer of Code

2016-03-01 Thread Dominic Steinitz
...@haskell.org wrote: > I'm sorry to announce that this year haskell.org was not accepted for the > 2016 Google Summer of Code. > > Dominic Steinitz domi...@steinitz.org http://idontgetoutmuch.wordpress.com ___ Haskell mailing list Haskell@hask

Re: SIMD

2015-04-13 Thread Dominic Steinitz
/ticket/10229 https://ghc.haskell.org/trac/ghc/ticket/10229) but I am trying to understand what other options might be available to speed things up. Dominic Steinitz domi...@steinitz.org http://idontgetoutmuch.wordpress.com On 13 Apr 2015, at 13:37, Geoffrey Mainland mainl...@cs.drexel.edu wrote

SIMD

2015-04-11 Thread Dominic Steinitz
origin Dominic Steinitz domi...@steinitz.org http://idontgetoutmuch.wordpress.com ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users

Re: [Haskell-cafe] Parallel Profiling

2015-04-02 Thread Dominic Steinitz
Hi Amos, Thanks very much - I am taking a look. Dominic Steinitz domi...@steinitz.org http://idontgetoutmuch.wordpress.com On 30 Mar 2015, at 22:05, Amos Robinson amos.robin...@gmail.com wrote: Hi Dominic, A few years ago we wrote a program for analysing DPH runs, dph-event-seer

Parallel Profiling

2015-03-30 Thread Dominic Steinitz
that would allow me to construct my own analyses rather than display them via GTK. There is ghc-events but that seems to be just for parsing the logs and I couldn’t find anything that used it in the way I would like to (apart from threadscope and ghc-events-analyze of course). Thanks Dominic

Equality Constraints (a ~ b)

2015-01-11 Thread Dominic Steinitz
/docs/users_guide.pdf section 7.11. Folk on #ghc referred me to http://research.microsoft.com/en-us/um/people/simonpj/papers/ext-f/. I can find papers that refer to ~ in F_C (aka FC?) but as far as I can tell not in the Haskell language itself. Many thanks Dominic Steinitz domi...@steinitz.org

RE: ANNOUNCE: GHC 7.10.1 Release Candidate 1

2014-12-29 Thread Dominic Steinitz
I counted about 10 people (including me) who appear to be actively keen on it on reddit: http://www.reddit.com/r/haskell/comments/2pnjdk/is_overloadedrecordfields_getting_it_into_7101/. I would guess there are others. Dominic Steinitz domi...@steinitz.org http://idontgetoutmuch.wordpress.com

Re: CPP Help (was Re: Latest Template Haskell Breaks Package)

2014-12-24 Thread Dominic Steinitz
Thank you very much everyone. I now have a version of yarr which compiles under ghc 7.8.3. I have yet to do the conditional compilation hackery to support back versions but then I can make a release. What a great community :-) Dominic Steinitz domi...@steinitz.org http

CPP Help (was Re: Latest Template Haskell Breaks Package)

2014-12-23 Thread Dominic Steinitz
# then a# else b# \ in case touch# r# s of s' - (# s', (con r#) #));\ } PRIM_COMP_INST(Int, I#, (=#), (=#)) Dominic Steinitz domi...@steinitz.org http://idontgetoutmuch.wordpress.com On 23 Dec 2014, at 15:06, Dominic Steinitz domi...@steinitz.org wrote: Hi

Re: CPP Help (was Re: Latest Template Haskell Breaks Package)

2014-12-23 Thread Dominic Steinitz
How very clever of you and thank you very much. Changing ‘ to 1 does fix the problem. I would have thought this would work cabal install --with-gcc=gcc-4.9 But sadly I still got the same error. Do I need a special version of cpphs? Dominic Steinitz domi...@steinitz.org http

Re: CPP Help (was Re: Latest Template Haskell Breaks Package)

2014-12-23 Thread Dominic Steinitz
$ cabal --version cabal-install version 1.19.1 using version 1.19.1 of the Cabal library Dominic Steinitz domi...@steinitz.org http://idontgetoutmuch.wordpress.com On 23 Dec 2014, at 15:54, Carter Schonwald carter.schonw...@gmail.com wrote: what version of cabal-install are you using

Re: [Haskell-cafe] llvm on macos

2013-08-20 Thread Dominic Steinitz
Dominic Steinitz dominic at steinitz.org writes: Thanks for all the help everyone :-) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] llvm on macos

2013-08-11 Thread Dominic Steinitz
-darwin12.3.0 Host CPU: core-avx-i Dominics-MacBook-Pro:Laplace dom$ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.6.2 Dominic Steinitz domi...@steinitz.org http://idontgetoutmuch.wordpress.com On 10 Aug 2013, at 18:41, Ozgur Akgun ozgurak...@gmail.com wrote: Hi

[Haskell-cafe] llvm on macos

2013-08-10 Thread Dominic Steinitz
\,\x86_64\]) ] But I don't have either llc or opt Dominics-MacBook-Pro:Laplace dom$ llc -bash: llc: command not found Dominics-MacBook-Pro:Laplace dom$ opt -bash: opt: command not found Dominics-MacBook-Pro:Laplace dom$ What is the solution? Thanks, Dominic Steinitz domi...@steinitz.org http

Re: [Haskell-cafe] llvm on macos

2013-08-10 Thread Dominic Steinitz
Thank you very much. I used Homebrew. Now I can compile albeit with a warning. I have yet to try running it. Loading package repa-3.2.3.1 ... linking ... done. You are using a new version of LLVM that hasn't been tested yet! We will try though... Dominic Steinitz domi...@steinitz.org http

Re: [Haskell-cafe] [haskell.org Google Summer of Code 2013] Approved Projects

2013-06-05 Thread Dominic Steinitz
I will certainly volunteer (to mentor) next year if I feel I can add value. Dominic Steinitz domi...@steinitz.org http://idontgetoutmuch.wordpress.com On 2 Jun 2013, at 17:23, Edward Kmett ekm...@gmail.com wrote: Public good is a nebulous concept, but it is something that each of the folks

Re: [Haskell-cafe] [haskell.org Google Summer of Code 2013] Approved Projects

2013-06-02 Thread Dominic Steinitz
it seems this requires payment but there may be a free equivalent Dominic Steinitz domi...@steinitz.org http://idontgetoutmuch.wordpress.com On 28 May 2013, at 16:11, Edward Kmett ekm...@gmail.com wrote: Hi Dominic, The proposal is admittedly rather unfortunately opaque. The parts I can shed

Re: [Haskell-cafe] [haskell.org Google Summer of Code 2013] Approved Projects

2013-05-28 Thread Dominic Steinitz
. Dominic Steinitz domi...@steinitz.org http://idontgetoutmuch.wordpress.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] What is the process for GSOC?

2013-05-01 Thread Dominic Steinitz
How is it decided which Haskell projects get chosen? Do we discuss them here and take a collective view? Thanks, Dominic. PS I should point out I have an interest in the proposal to port charts to use diagrams (http://www.google-melange.com/gsoc/proposal/review/google/gsoc2013/jbracker/1)

[Haskell-cafe] Automated Differentiation Type Question

2013-04-23 Thread Dominic Steinitz
Can anyone tell me why I get a type error with testGrad2? What are my options? Clearly I would like to be able find the gradient of my cost function for different sets of observations. Thanks, Dominic. {-# LANGUAGE NoMonomorphismRestriction #-} import Numeric.AD default() costFn ::

Re: [Haskell-cafe] Automated Differentiation Type Question

2013-04-23 Thread Dominic Steinitz
Answering my own question, what I needed was: testGrad2 :: (Fractional a, Num a) = (forall s . Mode s = [AD s a]) - (forall s . Mode s = [[AD s a]]) - [a] - [a] testGrad2 ys xss = grad (costFn ys xss) On 23 Apr 2013, at 10:44, Dominic Steinitz domi

Re: [Haskell-cafe] Automated Differentiation of Matrices (hmatrix)

2013-04-10 Thread Dominic Steinitz
underlying storage requirements, so there are a lot of little issues in making that latter vision a reality. -Edward On Tue, Apr 9, 2013 at 10:46 AM, Dominic Steinitz domi...@steinitz.org wrote: Hi Cafe, Suppose I want to find the grad of a function then it's easy I just use http

Re: [Haskell-cafe] Automated Differentiation of Matrices (hmatrix)

2013-04-10 Thread Dominic Steinitz
vision a reality. -Edward On Tue, Apr 9, 2013 at 10:46 AM, Dominic Steinitz domi...@steinitz.org wrote: Hi Cafe, Suppose I want to find the grad of a function then it's easy I just use http://hackage.haskell.org/package/ad-3.4: import Numeric.AD import Data.Foldable (Foldable

[Haskell-cafe] Automated Differentiation of Matrices (hmatrix)

2013-04-09 Thread Dominic Steinitz
Hi Cafe, Suppose I want to find the grad of a function then it's easy I just use http://hackage.haskell.org/package/ad-3.4: import Numeric.AD import Data.Foldable (Foldable) import Data.Traversable (Traversable) data MyMatrix a = MyMatrix (a, a) deriving (Show, Functor, Foldable, Traversable)

Re: [Haskell-cafe] Threadscope 0.2.2 goes in segmentation fault on Mac Os X 10.8.3

2013-04-03 Thread Dominic Steinitz
Cool! Works for me. Many thanks, Dominic On 3 Apr 2013, at 12:40, Edsko de Vries edskodevr...@gmail.com wrote: I provide a ThreadScope binary on my site (http://www.edsko.net/2013/01/24/threadscope-0-2-2/) which runs fine for me on 10.8.3. -E On Mon, Apr 1, 2013 at 8:01 AM, Dominic

Re: [Haskell-cafe] Threadscope 0.2.2 goes in segmentation fault on Mac Os X 10.8.3

2013-04-01 Thread Dominic Steinitz
Alfredo Di Napoli alfredo.dinapoli at gmail.com writes: Said that,has someone had any luck in running Threadscope on Mac OS X 10.8 at all? Thanks, A. I think I have encountered the same problem: https://groups.google.com/d/msg/parallel-haskell/-lhrgNN8elw/KzqLM9BzoJwJ In my

Problems installing 7.6.2 on MACOS

2013-03-27 Thread Dominic Steinitz
Hi, I followed the instructions pointed to from here: http://www.haskell.org/ghc/download_ghc_7_6_2#macosx_x86_64 bash-3.2$ ./configure --prefix=/Library/Haskell bash-3.2$ sudo make install But sadly I get: bash-3.2$ ghc-pkg list ghc-pkg: missing --global-package-db option, location of

Re: Problems installing 7.6.2 on MACOS

2013-03-27 Thread Dominic Steinitz
Answering my own question: it seems I made a rookie mistake and specified --prefix=/Library/Haskell which is where 7.4.1 lives. I just specified --prefix=/usr/lib and as far as I can tell everything works. On 27 Mar 2013, at 11:40, Dominic Steinitz domi...@steinitz.org wrote: Hi, I

Re: [Haskell-cafe] Optimization flag changing result of code execution

2013-03-17 Thread Dominic Steinitz
Aleksey Khudyakov alexey.skladnoy at gmail.com writes: I've tried to run you program and I've got approximately same results regardless of optimization level. Which versions of GHC, mwc-random, vector and primitive do you use? By approximate do you mean you are getting Monte Carlo noise

Re: [Haskell-cafe] Repa: traverse delayed array multiple times

2013-01-14 Thread Dominic Steinitz
Andrey Yankin yankin013 at gmail.com writes: Greetings to all! repa?I wrote this rough sketch that shows what I am into. Apparently, program is severely slow. I think reason is:Every time an element is requested from a delayed array it is calculated anew, which means that delayed

Re: Is there a workaround for this bug?

2013-01-01 Thread Dominic Steinitz
Integer literals (use Ints?). Sorry. Simon | -Original Message- | From: glasgow-haskell-users-boun...@haskell.org [mailto:glasgow-haskell-users- | boun...@haskell.org] On Behalf Of Dominic Steinitz | Sent: 26 December 2012 18:14 | To: glasgow-haskell-users@haskell.org | Subject

Is there a workaround for this bug?

2012-12-26 Thread Dominic Steinitz
AFAICT this bug fix http://hackage.haskell.org/trac/ghc/ticket/7239 did not make it into 7.6.1. Also I am happily working on the Haskell Platform with 7.4.1 and I'd rather avoid upgrading if possible. Is there a workaround? I've attached my code below along with the error message (which is the

Re: [Haskell-cafe] Large, numerical calculations in Haskell

2012-12-12 Thread Dominic Steinitz
Emil Hedevang emilhedevang at gmail.com writes: Hi Haskell Cafe, I need to perform very large numerical computations requiring tens of GB of memory. The computations consist essentially of generation of random numbers and discrete convolutions of large arrays of random numbers with

Re: [Haskell-cafe] [repa] beginner questions

2012-11-18 Thread Dominic Steinitz
Dmitry Malikov malikov.d.y at gmail.com writes: Playing around with repa arrays and got some questions. 1) How I can get list of indexes of array that suffice some predicate? a1 AUnboxed (Z :. 3) (fromList [False,False,True]) it :: Array U (Z :. Int) Bool Indexes of

Re: [Haskell-cafe] not enough fusion?

2012-06-27 Thread Dominic Steinitz
Duncan Coutts duncan.coutts at googlemail.com writes: This could in principle be fixed with an arity raising transformation, Do you have a reference to arity raising transformations? Thanks, Dominic. ___ Haskell-Cafe mailing list

[Haskell] Haskell Platform Release

2012-05-13 Thread Dominic Steinitz
Hi, The release timetable http://trac.haskell.org/haskell-platform/wiki/ReleaseTimetable says there will be a new release of the Haskell Platform in May. Can someone give an update on this? Many thanks, Dominic. ___ Haskell mailing list

[Haskell-cafe] Problem Installing ad (Automatic Differentiation) Package

2012-04-21 Thread Dominic Steinitz
Hi, I was trying to install ad (Automatic Differentiation) but got the following error. I guess the answer is to upgrade my ghc (perhaps someone could confirm) but I am using the Haskell Platform and would rather stick with that. I see from http://hackage.haskell.org/platform/ that the next

Re: [Haskell-cafe] Installing REPA

2012-04-07 Thread Dominic Steinitz
On 07/04/2012 11:14, Ben Lippmeier wrote: On 07/04/2012, at 9:33 AM, Chris Wong wrote: On Sat, Apr 7, 2012 at 2:02 AM, Dominic Steinitz idontgetoutm...@googlemail.com wrote: Hi, I'm trying to install REPA but getting the following. Do I just install base? Or is it more complicated than

[Haskell-cafe] GHCi runtime linker: fatal error (was Installing REPA)

2012-04-07 Thread Dominic Steinitz
On 07/04/2012 15:42, Dominic Steinitz wrote: On 07/04/2012 11:14, Ben Lippmeier wrote: On 07/04/2012, at 9:33 AM, Chris Wong wrote: On Sat, Apr 7, 2012 at 2:02 AM, Dominic Steinitz idontgetoutm...@googlemail.com wrote: Hi, I'm trying to install REPA but getting the following. Do I just

[Haskell-cafe] Installing REPA

2012-04-06 Thread Dominic Steinitz
Hi, I'm trying to install REPA but getting the following. Do I just install base? Or is it more complicated than that? Thanks, Dominic. Tests-MacBook-Pro:PDE Test$ cabal install repa Resolving dependencies... cabal: cannot configure repa-2.2.0.1. It requires base ==4.4.* For the dependency

Documentation Bug?

2011-12-14 Thread Dominic Steinitz
The link on http://www.haskell.org/ghc/docs/latest/html/users_guide/hpc.html to http://www.haskell.org/hpc seems to be broken. ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org

hp2ps Bug?

2011-08-17 Thread Dominic Steinitz
If I use profiling on windows with relative path names e.g. the first line in the .hp file is something like: JOB ScriptUsage.exe -t ..\FPF\TradeDesc\TradesTags.txt -f ..\out\FPOs - u ..\Data\LogStarted090511c +RTS -H256M -hc then hp2ps produces nonsense. If I replace this line with: JOB

[Haskell-cafe] Re: Codec.Crypto.RSA question

2010-11-20 Thread Dominic Steinitz
Charles-Pierre Astolfi cpa at crans.org writes: Hi -cafe, I have a question about Codec.Crypto.RSA: how to enforce that (informally) decrypt . encrypt = id Consider this code: That's certainly what I would expect and one of the unit tests that comes with

[Haskell-cafe] Re: Haddock Problem

2010-06-24 Thread Dominic Steinitz
Does anyone have any suggestions or do I have to start building haddock myself? Ok I built it from source rather than using the Haskell Platform exe and it now works. Perhaps the packager of the Haskell Platform for Windows could take a look at why the binary is behaving as it does? Dominic.

[Haskell-cafe] Re: Haddock Problem

2010-06-22 Thread Dominic Steinitz
malcolm.wallace malcolm.wallace at me.com writes: I haven't been following closely, but how did you install haddock? From a binary dist? Is it possible that one of the Windows binary dists has a baked-in location for something on the E: drive, which existed on the packager's machine but

[Haskell-cafe] Re: Haddock Problem

2010-06-15 Thread Dominic Steinitz
David Waern david.waern at gmail.com writes: I think using --optghc=-package-conf is the correct way to point to another package DB, so I'll look into why it doesn't work. Perhaps another line of attack would be to see why haddock thinks I have an E: drive?

[Haskell-cafe] Haddock Problem

2010-06-14 Thread Dominic Steinitz
..\ThirdParty\Haskell_Platform\2010.1.0.0\bin\haddock.exe BackendC\Core.hs haddock.exe: can't find a package database at E:\ghc\ghc-6.12.1lib\package.conf.d But if I do haddock --help there is no option to set the package database and I don't even have an E: drive. I'm on windows in case that

[Haskell-cafe] Re: Haddock Problem

2010-06-14 Thread Dominic Steinitz
Try --optghc=-package-conf --optghc=file, to point Haddock at the custom DB. Hi David, Thanks for the quick response. No dice I am afraid. Dominic. BTW this (using optghc) used to work on previous versions of haddock (iirc 2.4 and 2.5).

[Haskell-cafe] Re: Haddock Problem

2010-06-14 Thread Dominic Steinitz
David Waern david.waern at gmail.com writes: 2010/6/14 David Waern david.waern at gmail.com: OK, it seems like the path from the ghc-paths package overrided what you specified. I'm not sure this will work, but you could try:  haddock -B

[Haskell-cafe] Re: Linguistic hair-splitting

2010-02-15 Thread Dominic Steinitz
wren ng thornton wren at freegeek.org writes: or whatever). Haskell and similar languages choose a particular set of coercions to Nice explanation. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Re: Category Theory woes

2010-02-02 Thread Dominic Steinitz
Mark Spezzano mark.spezzano at chariot.net.au writes: Maybe there are books on Discrete maths or Algebra or Set Theory that deal more with Hom Sets and Hom Functions? Googling haskell category theory I got: http://en.wikibooks.org/wiki/Haskell/Category_theory

[Haskell-cafe] Re: (liftM join .) . mapM

2009-12-29 Thread Dominic Steinitz
Stephen Tetley stephen.tetley at gmail.com writes: -- | Compose an arity 1 function with an arity 2 function. -- B1 - blackbird oo :: (c - d) - (a - b - c) - a - b - d oo f g = (f .) . g Extending the arity works quite nicely too: -- | Compose an arity 1 function with an arity 3

[Haskell-cafe] ForSyDe (parameterized-data) fails to build

2009-12-15 Thread Dominic Steinitz
I'm not sure how actively this is maintained or used but I couldn't get it to build. Downloading parameterized-data-0.1.3... Configuring parameterized-data-0.1.3... Preprocessing library parameterized-data-0.1.3... Building parameterized-data-0.1.3... src\Data\Param\FSVec.hs:1:46: Warning:

[Haskell-cafe] Re: haskell-src-exts Question

2009-11-16 Thread Dominic Steinitz
Niklas Broberg niklas.broberg at gmail.com writes: please? http://trac.haskell.org/haskell-src-exts Niklas, I'd love to raise a bug for it but unfortunately I can't log on to trac. I don't understand why but none of my colleagues can log on either. It's been a long standing issue. I presume

[Haskell-cafe] Re: haskell-src-exts Question

2009-11-16 Thread Dominic Steinitz
Dominic Steinitz dominic at steinitz.org writes: Niklas Broberg niklas.broberg at gmail.com writes: please? http://trac.haskell.org/haskell-src-exts Niklas, I'd love to raise a bug for it but unfortunately I can't log on to Good news. Although I couldn't logon as guest, I've created

[Haskell-cafe] haskell-src-exts Question

2009-11-13 Thread Dominic Steinitz
I've been generating Haskell using haskell-src-exts but the prettyprinter isn't producing what I would expect. I would expect parse . prettyPrint == id i.e. the AST should be unchanged if you prettyprint it then parse it. Here's an example generated expression: App (App (Var (UnQual (Ident

Re: HPC gives spurious results if sources are compiled with -cpp

2009-07-18 Thread Dominic Steinitz
Ian Lynagh wrote: On Wed, Jul 15, 2009 at 04:05:14PM +, Dominic Steinitz wrote: Simon Marlow marlowsd at gmail.com writes: On 14/07/2009 10:08, Dominic Steinitz wrote: Trac doesn't seem to work for us so I'm sending this bug report by email. What's the symptom? Cheers, Simon I

Re: HPC gives spurious results if sources are compiled with -cpp

2009-07-15 Thread Dominic Steinitz
Simon Marlow marlowsd at gmail.com writes: On 14/07/2009 10:08, Dominic Steinitz wrote: Trac doesn't seem to work for us so I'm sending this bug report by email. What's the symptom? Cheers, Simon I hit New Bug and get TICKET_CREATE privileges are required to perform

HPC gives spurious results if sources are compiled with -cpp

2009-07-14 Thread Dominic Steinitz
Trac doesn't seem to work for us so I'm sending this bug report by email. ghc --version The Glorious Glasgow Haskell Compilation System, version 6.10.1 ghc.exe -fhpc -cpp --make CommonHPC.hs -o CommonHPC commonHPC hpc markup CommonHPC --fun-entry-count This gives no entry counts for fact in

[Haskell-cafe] Re: Haddock : parse error on input `{-# UNPACK'

2009-06-07 Thread Dominic Steinitz
Erik de Castro Lopo mle+hs at mega-nerd.com writes: Dominic Steinitz wrote: Erik de Castro Lopo mle+hs at mega-nerd.com writes: src/Data/Binary/Strict/IncrementalGet.hs:106:11: parse error on input `{-# UNPACK' This is a haddock error and I presume a bug

[Haskell-cafe] Re: Haddock : parse error on input `{-# UNPACK'

2009-06-07 Thread Dominic Steinitz
Dominic Steinitz dominic at steinitz.org writes: Erik de Castro Lopo mle+hs at mega-nerd.com writes: Dominic Steinitz wrote: Erik de Castro Lopo mle+hs at mega-nerd.com writes: src/Data/Binary/Strict/IncrementalGet.hs:106:11: parse error on input

[Haskell-cafe] Re: Haddock : parse error on input `{-# UNPACK'

2009-06-06 Thread Dominic Steinitz
Erik de Castro Lopo mle+hs at mega-nerd.com writes: src/Data/Binary/Strict/IncrementalGet.hs:106:11: parse error on input `{-# UNPACK' Is this a bug? Is there any way to work around it? This is a haddock error and I presume a bug in haddock. I don't know whether cabal installs

Re: [Haskell-cafe] Cabal, Time GHC 6.10.2

2009-05-24 Thread Dominic Steinitz
Duncan Coutts wrote: On Sun, 2009-05-17 at 09:17 +0100, Dominic Steinitz wrote: I get d...@linux-6ofq:~/asn1 runghc Setup.hs configure Configuring PER-0.0.20... Setup.hs: At least the following dependencies are missing: time -any -any but I have time d...@linux-6ofq:~/asn1 ghc-pkg list

[Haskell-cafe] HPC Website FAQ

2009-05-24 Thread Dominic Steinitz
There's a nice website for HPC but it looks a bit out of date. http://projects.unsafeperformio.com/hpc/ I wanted to send a patch to the FAQ for using HPC with .lhs files (you have to run ghc -E to generate .hs files and strip some of the the lines ghc generates: {-# LINE 1 ASNTYPE.lhs #-} #line

[Haskell-cafe] Cabal, Time GHC 6.10.2

2009-05-17 Thread Dominic Steinitz
The Glorious Glasgow Haskell Compilation System, version 6.10.2 d...@linux-6ofq:~/asn1 ghc-pkg --version GHC package manager version 6.10.2 Here's my .cabal file. Name:PER Version: 0.0.20 License: BSD3 Author: Dominic Steinitz Maintainer: dominic.stein

[Haskell-cafe] Re: Problems with Haskell Program Coverage

2009-04-25 Thread Dominic Steinitz
Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk writes: Dominic Steinitz dominic.steinitz at blueyonder.co.uk wrote: I want to use hpc to check that the ASN.1 library tests cover all the code. When I run it with a set of tests that I *know* don't test certain things, it reports

[Haskell-cafe] Problems with Haskell Program Coverage

2009-04-22 Thread Dominic Steinitz
I want to use hpc to check that the ASN.1 library tests cover all the code. When I run it with a set of tests that I *know* don't test certain things, it reports that they have been covered i.e. there are not coloured in the markup that hpc produces. I would have expected a lot of yellow. It

[Haskell] Re: deriving Show for GADT?

2009-04-14 Thread Dominic Steinitz
Norman Ramsey nr at cs.tufts.edu writes: I've got a fairly large GADT for which I wished to use deriving (Show) You will have to write one by hand. I tend to use Text.Pretty and then the output is much more readable. It doesn't take long even for a what I would consider a large GADT.

[Haskell] Re: seeking papers with good examples of the use of GADTs

2009-04-13 Thread Dominic Steinitz
I am hoping some of you may have suggestions about other papers that would be good tutorials in the use of GADTs. Norman Norman, This is very much in a state of flux but it may be worth taking a look at http://code.haskell.org/asn1/ASNTYPE.lhs. There's also

[Haskell-cafe] Re: how to link to external documentation with haddock ?

2009-01-12 Thread Dominic Steinitz
minh thu noteed at gmail.com writes: http://www.haskell.org/haskellwiki/Haddock/FAQ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: GADT Strangeness

2009-01-10 Thread Dominic Steinitz
Simon Peyton-Jones wrote: | Is it worth noting it here | http://haskell.org/haskellwiki/Upgrading_packages#Changes_to_GADT_matching | or is it something that has always existed with GADTs and I just didn't | trip over it? I've added a para. Good idea. Thanks very much. I'm slightly

[Haskell-cafe] Re: Low-level networking [Haskell not ready for Foo]

2009-01-09 Thread Dominic Steinitz
John Goerzen jgoerzen at complete.org writes: Any idea how I get Haskell to send ICMP ECHO packets? (And, obviously, receive the replies.) SocketType claims to support Raw, which I think is the conventional means for doing this. Whether all the infrastructure for that is there, I don't

Re: GADT Strangeness

2009-01-03 Thread Dominic Steinitz
Simon Peyton-Jones wrote: | If I remove -XScopedTypeVariables from this http://hpaste.org/13230 then | I get the following error message: | | Asn1cTestNew.hs:55:27: | GADT pattern match in non-rigid context for `INTEGER' |Solution: add a type signature | In the pattern: INTEGER

GADT Strangeness

2008-12-21 Thread Dominic Steinitz
If I remove -XScopedTypeVariables from this http://hpaste.org/13230 then I get the following error message: Asn1cTestNew.hs:55:27: GADT pattern match in non-rigid context for `INTEGER' Solution: add a type signature In the pattern: INTEGER In the definition of

Re: pbkdf2 on hackage Re: Re[2]: [Haskell-cafe] Password hashing

2008-12-07 Thread Dominic Steinitz
Thomas Hartman wrote: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/PBKDF2 Since no one took up my code review request I just did the best I Also I'm open to folding this into a more established crypto package if there are any takers... psst, dominic. I've now had chance to

[Haskell-cafe] Control.Exception Funny

2008-11-29 Thread Dominic Steinitz
I'm probably doing something wrong but this example doesn't compile for me under ghc 6.10.1 (http://www.haskell.org/ghc/docs/latest/html/libraries/base/Control-Exception.html#4): catch (openFile f ReadMode) (\e - hPutStr stderr (Couldn't open ++f++: ++ show e)) Run.hs:77:24:

Re: [Haskell-cafe] Control.Exception Funny

2008-11-29 Thread Dominic Steinitz
Claus Reinke wrote: btw, if your handler cannot return the same type as your action, is this the right place to catch the exceptions? That was an example, the real code looks something like this: do d - getCurrentDirectory t - getCurrentTime let u = asn1c. ++ show (utctDay

Re: GADT Type Checking GHC 6.10 versus older GHC

2008-11-28 Thread Dominic Steinitz
Ignore my last email. I was accidentally using The Glorious Glasgow Haskell Compilation System, version 6.9.20080616 Mind you I am still having problems just not the same ones. I'll report back later. Dominic. ___ Glasgow-haskell-users mailing list

Re: GADT Type Checking GHC 6.10 versus older GHC

2008-11-28 Thread Dominic Steinitz
Simon Peyton-Jones wrote: | I also feel that the type errors given when working with existential | types, especially GADTs with existentials, are confusing. I think | | I am using existential types to test GADT code. See | http://www.haskell.org/haskellwiki/QuickCheck_/_GADT which no

Re: GADT Type Checking GHC 6.10 versus older GHC

2008-11-28 Thread Dominic Steinitz
Simon Peyton-Jones wrote: | arbitrarySeq :: Sequence a - Gen RepSeqVal | arbitrarySeq Nil = | return (RepSeqVal Nil Empty) | arbitrarySeq (Cons (CTMandatory (NamedType n i t)) ts) = | do u - arbitraryType t |us - arbitrarySeq ts |case u of | RepTypeVal

Re: pbkdf2 on hackage Re: Re[2]: [Haskell-cafe] Password hashing

2008-11-28 Thread Dominic Steinitz
Thomas Hartman wrote: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/PBKDF2 Since no one took up my code review request I just did the best I could and uploaded to hackage. There were indeed some mistakes in my initial post, fixed now. (Code review is still wished, though!)

GADT Type Checking GHC 6.10 versus older GHC

2008-11-27 Thread Dominic Steinitz
In my case, we had rigid type signatures all over the place. The wiki document says that the type must be rigid at the point of the match. I guess that's what we were violating. If the code I posted isn't supposed to type check then I would like to report, as user feedback, that GADTs have

[Haskell-cafe] Need machine for DPH benchmarking

2008-11-27 Thread Dominic Steinitz
we, the DPH team, are at the moment in the very unfortunate situation of not having a proper machine for running our benchmarks on. Could a kind soul maybe give us (i.e., me) access to a quadcore or 2xquadcore x86 Linux or OS X machine? I only need to build ghc on it and run small

[Haskell-cafe] Building QuickCheck 2 Under GHC 6.10.1

2008-11-27 Thread Dominic Steinitz
Having been a happy user of QuickCheck 2 for many years, I now find it won't build under ghc 6.10.1. Before I investigate further, has anyone encountered this problem and has a fix? Thanks, Dominic. C:\Users\Dom\QuickCheckSetup build Preprocessing library QuickCheck-2.0... Building

Re: GADT Type Checking GHC 6.10 versus older GHC

2008-11-22 Thread Dominic Steinitz
Jason Dagit dagit at codersbase.com writes: On Fri, Nov 21, 2008 at 8:57 AM, Simon Peyton-Jones simonpj at microsoft.com wrote: You need a type signature for the case expression. As Daniel says, this is worth a

Re: GADT Type Checking GHC 6.10 versus older GHC

2008-11-22 Thread Dominic Steinitz
Dominic Steinitz dominic.steinitz at blueyonder.co.uk writes: packaged form for my flavour of linux. I will put some work into doing this today and report back. Dominic. Phew - I installed the windows 6.10.1 package and everything to do with GADTs still seems to work. Dominic

Re: 6.10.1 Bug?

2008-11-18 Thread Dominic Steinitz
Dominic Steinitz wrote: According to the hackage page, the Haskell Cryptography Library has a build failure. I couldn't find a bug reference when I searched for milestone 6.10.1 on trac. Should I report it? Has it been fixed? Thanks, Dominic. http://hackage.haskell.org/packages/archive

6.10.1 Bug?

2008-11-17 Thread Dominic Steinitz
According to the hackage page, the Haskell Cryptography Library has a build failure. I couldn't find a bug reference when I searched for milestone 6.10.1 on trac. Should I report it? Has it been fixed? Thanks, Dominic.

[Haskell-cafe] Exporting a Type Class for Type Signatures

2008-11-10 Thread Dominic Steinitz
In the crypto package, I have two functions encrypt :: AESKey a = a - Word128 - Word128 decrypt :: AESKey a = a - Word128 - Word128 which are exported. I also have class (Bits a, Integral a) = AESKey a instance AESKey Word128 instance AESKey Word192 instance AESKey Word256 unexported

  1   2   3   >