Bugs item #670756, was opened at 2003-01-19 18:59
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=108032aid=670756group_id=8032
Category: Driver
Group: 5.04.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Axel Simon (as49)
Assigned to: Nobody/Anonymous
I am currently working on my master thesis which is designing and
implementing an usage analysis for Core. I have been working with
ghc-5.02 but want to start use ghc-5.04.2 instead. The problem is that
it seems like ghc-5.04.2 generates faulty Core code.
I need to generate Core for the entire
Sven Panne wrote:
Allowing leaf names to be equal is essential for the whole hierarchical
module business!
Obviously, yes.
Otherwise you would get evil non-local interactions
between different modules. And in practice it doesn't seem to be a problem
for ar/ld, because the base package and
I would like to use hGetContents just to retrieve the list of the lines
of a file, but if I code a function like:
linesFromFile :: FilePath - IO [String]
linesFromFile f = do
h - openFile f ReadMode
l - hGetContents h
hClose h
return (lines l)
I obviously always
| I would like to use hGetContents just to retrieve the list of
| the lines of a file, but if I code a function like:
|
| linesFromFile :: FilePath - IO [String]
| linesFromFile f = do
| h - openFile f ReadMode
| l - hGetContents h
| hClose h
| return (lines l)
|
| I
On Sun, 19 Jan 2003 08:51:31 -0800
Mark P Jones [EMAIL PROTECTED] wrote:
linesFromFile = fmap lines . readFile
Nice :) BTW, is readFile implemented with some strict evaluation
construct ?
I got another trouble: I need to build a record type like
Package { name :: String, version :: Int
Nick Name wrote:
I would like to use hGetContents just to retrieve the list of the lines
of a file, but if I code a function like:
linesFromFile :: FilePath - IO [String]
linesFromFile f = do
h - openFile f ReadMode
l - hGetContents h
hClose h
return (lines l)
On Sun, 19 Jan 2003 17:19:52 +
Glynn Clements [EMAIL PROTECTED] wrote:
Just omit the hClose; hGetContents will automatically close the
handle once all of the data has actually been read. See ยง11.2.1 of
the library report for details.
Thanks for this pointer. Quoting from the
hello there,
To be honest I'm not very familiar with haskell and stuff
so don't laugh with my question...
here it goes..
We can represent a matrix as a list of lists...
which means that
1 2 3
4 7 6
2 5 1
could be written as follows:
cris cris wrote:
We can represent a matrix as a list of lists...
which means that
1 2 3
4 7 6
2 5 1
could be written as follows: [[1,2,3],[4,7,6],[2,5,1]]
The question is how can I reverse the matrix (each row becomes a column)
Sounds like homework time again.
At the risk of being
Nick Name [EMAIL PROTECTED] wrote:
Or maybe the subject has nothing to do with my question :)
It does, I think.
snip subject=class Visible/
My problem is: an user putting someway different visible elements in
a list (wich could be represented in a side panel) will want to
retrieve an object
On Sun, 19 Jan 2003 12:50:16 -0600
Jon Cast [EMAIL PROTECTED] wrote:
Short version: if
Typeable is a super-class of Visible or mentioned in your existential
type (i.e., forall a. (Visible a, Typeable a) = Con) you can use
(fromDynamic . toDyn) to safely (attempt to) convert the abstract
On Sun, 19 Jan 2003 16:02:41 -0600
Jon Cast [EMAIL PROTECTED] wrote:
So, I would attach a list of named operations of type (Dynamic -
Result) to each type, and offer the operations for a given type to
the user.
Thanks for your answer, it's interesting.
What do you mean with named
13 matches
Mail list logo