RE: Type families difference between 7.0.4 and 7.2.1

2011-08-17 Thread Simon Peyton-Jones
It's wrong. Thank you for pointing this out. I'll investigate.

Simon

| -Original Message-
| From: glasgow-haskell-users-boun...@haskell.org [mailto:glasgow-haskell-users-
| boun...@haskell.org] On Behalf Of Luite Stegeman
| Sent: 16 August 2011 16:57
| To: glasgow-haskell-users@haskell.org
| Subject: Re: Type families difference between 7.0.4 and 7.2.1
| 
| sorry, I accidentally sent my reply to Brandon to the wrong address,
| not this list.
| 
| On Tue, Aug 16, 2011 at 4:56 PM, Dan Doel dan.d...@gmail.com wrote:
| ...
|  I don't really understand why it would be impossible not to export a
|  data family, given that (instances I understand). And of course, you
|  can selectively export methods of a class, so why not associated
|  types?
| 
| I don't understand that either. A link to the original discussion or
| issue number would be welcome.
| 
| I'll repeat my example and add what I meant with Within B it can only
| be referred to as C.F:
| 
| -- A.hs
| module A where
| 
| import B
| 
| -- B.hs
| {-# LANGUAGE TypeFamilies #-}
| 
| module B where
| 
| import qualified C
| 
| data B1 a = B1 a
| 
| instance C.C1 (B1 a) where
|   data C.F (B1 a) = B2 a
| 
| data family D a
| 
| -- C.hs
| {-# LANGUAGE TypeFamilies #-}
| module C where
| 
| class C1 a where
|   data F a :: *
| 
| -- ghci 7.2.1
| ghci A
| *A :info F
| data family F a   -- Defined at C.hs:6:8
| 
| ghci B
| *B :browse
| data B1 a = B1 a
| data instance B.R:FB1 (B1 a) = B2 a
| data family D a
| data family F a
| *B :info F
| Top level: Not in scope: data constructor `F'
| *B :info C.F
| data family C.F a -- Defined at C.hs:6:8
| 
| -- ghci 7.0.4
| ghci A
| *A :info F
| Top level: Not in scope: data constructor `F'
| 
| ___
| Glasgow-haskell-users mailing list
| Glasgow-haskell-users@haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


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 ScriptUsage.exe +RTS -H256M -hc

then it works.

Is this a known bug or should I try to raise one?

Thanks, Dominic.


___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users