Ketil Malde [EMAIL PROTECTED] writes:
I have some problems getting profiling to work with a ghc-6.4 that I
compiled from source. Everything seems to work all right, but the
output doesn't contain any times
[...]
(ghc 6.4 compiled from source with ghc 6.2.2 on Ubuntu 5.04, Linux
... = do
let part1 = getLeft keyno orgFile
let part2 = getRight keyno orgFile
let total = part1 ++ (strUpper key) ++ part2 ++ \n
... - ...
getLeft/getRight do not return monadic actions (String - String -
String, not String - String - IO String), so you just bind them
using let
Regards,
On 2005-04-20 19:04:32 -0700, Alexandre Weffort Thenorio
[EMAIL PROTECTED] said:
As usual a beginner in Haskell. Trying to write a simple program in haskel
shown below
[snip]
getLeft :: String - String - String
getRight :: String -String - String
outputLine keyno key orgFile = do
part1 -
hi
im a first year computer science student, and we are currently learning
haskell. We have recently begun to learn the IO functions and to
compile programs.
The problem i have is that when i execute the command ghc -o
exe-name name.hs it is supposed to produce two files, when i do it
Mensaje citado por Eli Jordan [EMAIL PROTECTED]:
hi
im a first year computer science student, and we are currently learning
haskell. We have recently begun to learn the IO functions and to
compile programs.
The problem i have is that when i execute the command ghc -o
exe-name name.hs it
Mostly appreciated. It sure fixed the problem. Now for another question
in outputline
outputLine keyno key orgFile = do
--lineList - getLines orgFile
--orgLine - head (drop 1 lineList)
let part1 = getLeft keyno (orgFile!!1)
let part2 = getRight keyno (orgFile!!1)
let total =
What is the preferred way to generate haddockumentation
from code that must be preprocessed (ghc -cpp)?
Would Cabal support this? I'd certainly welcome Cabal support
for other haddock features as well (--source, --read-interface).
I am not sure where to put all these arguments in the .cabal file.
I finally succeeded using cabal for a project that uses hsc2hs. My problem
was/is I need to give special options to hsc2hs, for instance a different
template header file to use. Cabal doesn't support this at the moment.
I propose to give the user a bit more flexibility with regard to
Folks,
I think maybe ghci is scrambling my terminal settings under Linux.
I hear if I send you some mail, I may get some useful information.
Norman
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
Bugs item #1186853, was opened at 2005-04-20 18:10
Message generated for change (Comment added) made by simonmar
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=108032aid=1186853group_id=8032
Category: Compiler
Group: 6.4
Status: Open
Resolution: None
Priority: 5
On 21 April 2005 00:46, Norman Ramsey wrote:
I think maybe ghci is scrambling my terminal settings under Linux.
I hear if I send you some mail, I may get some useful information.
Can you send us a 'stty -a' before and after running GHCi?
Cheers,
Simon
Bugs item #1187295, was opened at 2005-04-21 11:11
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=108032aid=1187295group_id=8032
Category: libraries/base
Group: 6.4
Status: Open
Bugs item #1187302, was opened at 2005-04-21 11:24
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detailatid=108032aid=1187302group_id=8032
Category: libraries/base
Group: 6.4
Status: Open
Has anyone ever succeeded in porting ghc to HP-UX 10.20 or later?
Ben
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
On 20 April 2005 17:34, Thomas Schwinge wrote:
On Sun, Apr 10, 2005 at 10:39:08PM +0100, Simon Marlow wrote:
On 10 April 2005 14:20, Thomas Schwinge wrote:
Is someone aware of any efforts to port the GHC to GNU/Hurd?
If not, I'd like to give that a try.
No, and good luck!
I should be
On 20 April 2005 15:56, Bulat Ziganshin wrote:
Tuesday, April 19, 2005, 4:15:53 PM, you wrote:
1) can you add disableGC and enableGC procedures? this can
significantly improve performance in some cases
Sure. I imagine you want to do this to avoid a major collection
right at the peak of
On 20 April 2005 15:13, Jessica Brennan wrote:
ghc-6.4-host/libraries/readline
NetBSD-2.0 0 # gmake boot
==fptools== gmake boot -r;
in /devel/build/NetBSD/ghc/ghc-6.4-host/libraries/readline
On Thursday 21 April 2005 11:38, Benjamin Franksen wrote:
Has anyone ever succeeded in porting ghc to HP-UX 10.20 or later?
Sidenote: The background is that I want to persuade people at work to
switch from CVS to darcs. It would be a lot easier to do so if I could
get darcs to compile under
On 21 April 2005 11:56, Benjamin Franksen wrote:
On Thursday 21 April 2005 11:38, Benjamin Franksen wrote:
Has anyone ever succeeded in porting ghc to HP-UX 10.20 or later?
Sidenote: The background is that I want to persuade people at work to
switch from CVS to darcs. It would be a lot
On Thu, 2005-04-21 at 10:57 +0100, Simon Marlow wrote:
I mentioned madvise() above: this is a compromise solution which
involves telling the kernel that the data in memory is not relevant, but
doesn't actually free the memory. The kernel is free to discard the
pages if memory gets tight,
Suppose that a program using the Control.Concurrent.STM module had a
producer/consumer setup - one thread writing to a channel, the other
thread reading from the channel. It seems natural to want a function
that the producer can call that will block until the consumer has
finished consuming
On Thu, Apr 21, 2005 at 10:47:27AM -0400, Abraham Egnor wrote:
Used in isolation, i.e.
atomically $ writeTChan chan ()
atomically $ flush chan
it works fine. However, when composed (atomically $ writeTChan chan
() flush chan), it causes a race condition, usually resulting in
deadlock,
Hello Abraham,
Thursday, April 21, 2005, 6:47:27 PM, you wrote:
AE Suppose that a program using the Control.Concurrent.STM module had a
AE producer/consumer setup - one thread writing to a channel, the other
AE thread reading from the channel. It seems natural to want a function
AE that the
Hello GHC,
where i can find building guide in the html/pdf/... any other form
readable by windows/IE?
--
Best regards,
Bulat mailto:[EMAIL PROTECTED]
___
Glasgow-haskell-users mailing list
...has package version 1.0, but the current darcs repo (and the home page)
says latest version is 0.6. May I assume that the 1.0 versioning is
accidental (i.e. wrong)?
Ben
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
ghc 6.4 x86_64 appears to be interpreting
foreign import foo as importing the value of foo rather than the
address of foo.
I wrote a test case that demonstrates this problem here
http://repetae.net/john/ghc-bug.tar.gz
correct output:
;./foo
()
0x080774f0
0x080774f4
0xdeadbeef
incorrect
I know that ghc cannot produce shared libraries on all systems, but what about
just linking existing ones (i.e. for ffi code)? Is there a secret command
line switch for that, or do I have to use the C linker? Is there an option in
cabal that I have been missing that could help me?
Cheers
Ben
G'day all.
On 20 April 2005 01:46, [EMAIL PROTECTED] wrote:
Would it help if I cabalised it?
Quoting Simon Marlow [EMAIL PROTECTED]:
Sure!
Which raises the question: How?
I understand that Ross had a smallish tutorial. Anyone know where I can
find it?
Cheers,
Andrew Bromage
Am Donnerstag, 21. April 2005 03:58 schrieb Greg Wolff:
I'm new at using Haskell and I'm trying to make use of the parsec
library. I've started by working through the examples in the user guide
which don't work as written in ghci when I run them. I've made
modifications that have gotten them
Hi,
I'm working on a version of Simon Thompson's code from The Craft of Functional
programming to handle polymorhpic data types.
Heres the question Im working on - Ive tried doing the first part, but i would
really apprecate it if someone could let me know if ive implemented it wrong.
Mike
Hi,
I'm beginning to study Haskell, For the
following
a = [1,2,3]
b = "there"
do x - a
y - b
return (x , y)
Winhugs cannot run it. Gives
Syntax error in input (unexpected backslash
(lambda))
___
Haskell-Cafe mailing list
On Apr 21, 2005, at 3:47 PM, SCOTT J. wrote:
Hi,
I'm beginning to study Haskell, For the following
a = [1,2,3]
b = there
do x - a
y - b
return (x , y)
Winhugs cannot run it. Gives
Syntax error in input (unexpected backslash (
lambda))
Your problem is that you're using monads to grab
Thomas Davie wrote:
On Apr 21, 2005, at 3:47 PM, SCOTT J. wrote:
Hi,
I'm beginning to study Haskell, For the following
a = [1,2,3]
b = there
do x - a
y - b
return (x , y)
Winhugs cannot run it. Gives
Syntax error in input (unexpected backslash (
lambda))
Your problem is that you're using
Hi, I'm trying to investigate the list monad. I
program
instance Monad [] where
xs = f = concat ( map f xs )
return x = [x]
a = [1,2,3]
b = "there"
do { x - a
y -
b
return (x , y) }
And I get the error
Syntax error in input (unexpected backslash
(lambda))
Jan
Thanks for your assistance. I'm using now
Notepad.exe . Before I did it in Wordpad. I use Windows XP. I'm trying to solve
this nasty problem
- Original Message -
From:
SCOTT J.
To: haskell-cafe@haskell.org
Sent: Thursday, April 21, 2005 5:16
PM
Subject:
[sorry if you receive this twice; mailing list problems]
SCOTT J. wrote:
Thanks for your assistance. I'm using now Notepad.exe . Before I did
it in Wordpad. I use Windows XP. I'm trying to solve this nasty problem
WordPad probably saved your file in RTF rather than TXT. Keep using
Notepad
You may want to have a look there :
http://www.haskell.org/libraries/#ide
It references some tools to develop in haskell ...
Pierre
Keith Wansbrough a écrit :
[sorry if you receive this twice; mailing list problems]
SCOTT J. wrote:
Thanks for your assistance. I'm using now Notepad.exe . Before I
Well I think one of the best tools to programme on for Windows is UltraEdit,
it will give you colors and other stuff (provided you get the correct file
for it which is out on the net).
Emacs also exists for windows and is not bad, but I don't know if that is
the best tool (I sure like it but I
It's not really clear to me what you're asking. The function read is a
method of the typeclass Read, and it has type Read a = String - a.
There are a number of instances of the typeclass Read in the standard
prelude (http://www.haskell.org/onlinereport/standard-prelude.html)
Notably,
instance
39 matches
Mail list logo