Thank for the reply.
I'll try the emacs approach (or better Xemacs because Emacs on Windows has
really ugly font smoothing), but I must say that - being an old school
object-oriented programmer who got spoiled by fully integrated IDEs like
Borland's TurboPascal, Microsoft Visual Studio, and
On Fri, Jun 15, 2007 at 11:31:36PM +0100, Jim Burton wrote:
I think that would only work if there was one column per line...I didn't
make it clear that as well as being comma separated, the delimiter is
around each column, of which there are several on a line so if the
delimiter is ~ a file
On Fri, 2007-15-06 at 22:23 -0700, Dan Weston wrote:
I realize in hindsight that my wording could have been a little less
flippant. Thanks for contributing to that website.
I'm Happy to hear that. Now if you could point out where you were
offensive I'll even understand. :) (Or did you
Quoth Tomasz Zielonka [EMAIL PROTECTED]:
| On Fri, Jun 15, 2007 at 11:31:36PM +0100, Jim Burton wrote:
| I think that would only work if there was one column per line...I didn't
| make it clear that as well as being comma separated, the delimiter is
| around each column, of which there are
Daniil Elovkov wrote:
I've recently asked some questions here about some little type hackery
implementing an embedded dsl. But now I wonder if it's worth the
effort at all...
Yes it is. Typed embedded DSL are quite useful and widely used. For
example, Lava (high-level hardware description
Anatoly Yakovenko wrote:
but what i really want to do is just do
map func [1, 2.0]
[1, 2.0]
I understand that this is impossible in haskell,
If you use a heterogeneous list, it is possible. The HList paper
describes such examples.
http://homepages.cwi.nl/~ralf/HList/
but why
Hello bf3,
Saturday, June 16, 2007, 1:24:58 AM, you wrote:
I read multiple papers with proposals to fix this, but does GHC implement
any of these?
no, but hugs implements one of these proposals: see 7.2 Extensible records:
Trex
in http://cvs.haskell.org/Hugs/pages/hugsman/exts.html
(hugs
I was told on #haskell (IRC) the other day that it is possible to write
a general memoisation table using IORef and unsafePerformIO. I can't
think of how this can be achieved without writing to a file, since a
function cannot hold state between invocations. What am I missing?
--
Tony Morris
und n = AppE (VarE (mkName show)) (SigE (VarE (mkName
undefined)) (ForallT [n] [] (VarT n))) -- undefined :: typePara
using ForallT [] [] (... works fine.
So this seems to be a th [| |] parser issue? I'll move this to the ghc
mailinglist.
(Thanks to Heffalump on #haskell)
Marc
Tomasz Zielonka wrote:
On Fri, Jun 15, 2007 at 11:31:36PM +0100, Jim Burton wrote:
I think that would only work if there was one column per line...I didn't
make it clear that as well as being comma separated, the delimiter is
around each column, of which there are several on a line so if the
Hi Tony,
2007/6/16, Tony Morris [EMAIL PROTECTED]:
I was told on #haskell (IRC) the other day that it is possible to write
a general memoisation table using IORef and unsafePerformIO. I can't
think of how this can be achieved without writing to a file, since a
function cannot hold state between
Sorry I should have mentioned that I actually did all those searches you
provided, and read the wiki. I've been searching the internet for 6 months
now. I'm a professional software developer with 20 years of experience. I
actually (co-)developed integrated IDEs for visual programming languages,
Thanks. Yes I read this is syntactic sugar, and I actually like that
approach; it automatically encapsulates the data fileds by functions,
which from an OO programmers point of view, is a good thing. I'm doing my
best to get rid of that OO view though, which is not easy after 15 years of
OO and 10
On Sat, Jun 16, 2007 at 12:08:22PM +0100, Jim Burton wrote:
Tomasz Zielonka wrote:
It would be easier to experiment if you could provide us with an
example input file. If you are worried about revealing sensitive
information, you can change all characters other then newline,
~ and , to As,
Tony Morris writes:
Yes, but where does the IORef live? Wouldn't I have to pass it back and
forth between invocations? If not, where do I get the IORef from on
subsequent invocations? Got a short example?
That's where the unsafePerformIO comes in. With unsafePerformIO and IORefs, you
can
Sorry I should have mentioned that I actually did all those searches you
provided, and read the wiki.
ok, then it is a different story, needing different answers:-) in particular,
you have found tools doing all the things you asked for, but they either
had issues (please report them, to the
Tomasz Zielonka wrote:
I guess you've tried to convince Oracle to produce the right format in
the first place, so there would be no need for post-processing...?
We don't control that job or the first db.
I wonder what would you get if you set the delimiter to be a newline ;-)
eek! ;-)
[EMAIL PROTECTED] writes:
The point I wanted to make is, that I can't find an
easy-to-install-ready-to-use-and-rock-n-roll IDE for Windows that comes with
all or most of those features. I mean something like Borland TurboPascal
from the 80's, Visual Studio 2005, IntelliJ IDEA or Eclipse.
Hello bf3,
Saturday, June 16, 2007, 3:24:06 PM, you wrote:
However, I never understood why Haskell doesn't permit the same name for a
function acting on different types, even without using type classes. Must be
some deeper reason for it (currying?)
i guess because it makes type inference
David House wrote:
Switching to Emacs will never be an easy task (I think the quote is A learning
curve you can use as a plumb line), but once you have, I very much doubt you'll
ever want to go back to anything else. :) The Emacs tour [1] (newer beta version
also available [2]) give a quick
Michael T. Richter wrote:
I'm trying my hand at making an improved, more efficient, Sieve of
Eratosthenes implementation based on Melissa O'Neil's paper
(http://www.cs.hmc.edu/~oneill/papers/Sieve-JFP.pdf) to augment the
inefficient not-Sieve I've documented at
Andrew Coppin writes:
Dude... somebody should write the world's next killer editor in Haskell,
just to show how awsome Haskell is!
Yi [1] does exist, with roughly this aim. Why not contribute an afternoon's
hacking?
[1]: http://haskell.org/haskellwiki/Yi
However, one of the reasons that
Hi all,
I tried to turn off buffering with the command hSetBuffering (from
System.IO) but my app still blocks on hGetContents (from
Data.ByteString). Does anyone know what's happening?
E.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
Eric writes:
I tried to turn off buffering with the command hSetBuffering (from
System.IO) but my app still blocks on hGetContents (from
Data.ByteString). Does anyone know what's happening?
I very much doubt anyone will be able to help you unless you include some code
for us all to look
David House wrote:
Andrew Coppin writes:
Dude... somebody should write the world's next killer editor in Haskell,
just to show how awsome Haskell is!
Yi [1] does exist, with roughly this aim.
Yes, I've read about Yi once or twice. And yet, I still find myself
puzzled as to what it
apfelmus wrote:
Lazy skew heaps are thoroughly explained in
C. Okasaski. Fun with binary heap trees.
In: The Fun of Programming. Palgrave. 2003.
http://www.palgrave.com/pdfs/0333992857.pdf
Extremely cool stuff, that. I love it when people write material like
this...
Hello,
On Saturday 16 June 2007 14:53, Michael T. Richter wrote:
I'm trying my hand at making an improved, more efficient, Sieve of
Eratosthenes implementation based on Melissa O'Neil's paper
(http://www.cs.hmc.edu/~oneill/papers/Sieve-JFP.pdf) to augment the
inefficient not-Sieve I've
David House wrote:
Eric writes:
I tried to turn off buffering with the command hSetBuffering (from
System.IO) but my app still blocks on hGetContents (from
Data.ByteString). Does anyone know what's happening?
I very much doubt anyone will be able to help you unless you include some
Andrew Coppin writes:
Why not contribute an afternoon's hacking?
1. I'm not good enough.
How do you intend to remedy that, apart from by writing Haskell code? Start
small, fix small typos or bugs, and build it up from there. Seriously, just give
it a go, I doubt any of your patches
However, one of the reasons that Emacs is so great is the absolute wealth of
libraries available for it. It's been aroud a long time and people like it a lot
so there's pretty much an Emacs Lisp library to integrate _any_ tool, to help
editing _any_ kind of source/configuration file etc. It would
On Fri, Jun 15, 2007 at 02:13:18PM -0700, Greg Fitzgerald wrote:
Tomek,
If you want to see the code I will try to release it
I'm very interested.
It seems I started rewriting this from scratch at home, so I can easily
release it. Here is the darcs repo:
David House wrote:
Andrew Coppin writes:
Why not contribute an afternoon's hacking?
1. I'm not good enough.
How do you intend to remedy that, apart from by writing Haskell code? Start
small, fix small typos or bugs, and build it up from there. Seriously, just give
it a go, I doubt any
On Sat, Jun 16, 2007 at 04:17:39PM +0100, Eric wrote:
import Network
import System.IO
import Data.ByteString as Bits(ByteString, hGetContents)
soc - listenOn $ PortNumber 2007
(hdl, host, port) - accept soc
hSetBuffering hdl No Buffering;
bs - Bits.hGetContents hdl; -- blocks here
On Sat, 2007-06-16 at 17:10 +0100, Andrew Coppin wrote:
It's a text-mode editor. quod erat demonstrandum.
Since it only operates in text-mode, it cannot possibly provide things
like clickable fold points, or a side-bar containing a bunch of icons
representing the objects in the current
Personally, I really hate text-mode editors. (I won't even go into how
many times I've had to reboot Linux just to get *out* of Vi!)
One bad experience and you have never given anyone/what a chance to proof you
wrong ;)
Perhaps take 10 seconds, fire up vim again and read the splash screen
Andrew Coppin writes:
Personally, I really hate text-mode editors. (I won't even go into how
many times I've had to reboot Linux just to get *out* of Vi!)
'Z Z' is the command to quit vi, right?
Sometimes. Sometimes it just types zz in the document. It depends on
the
Hi,
I'm trying, without success, to create a window with the attribute
override_redirect set to True (this way the window manager should not
take care of it). Obviously with Xlib (X11-1.2.2).
No meter how I try I seem not to be able to get there.
In test1 I try with the correct method
On Jun 16, 2007, at 11:10 AM, Andrew Coppin wrote:
Give it a go. Start out with the Emacs tutorial [1] so that you
have your feet
on solid ground, then jump to the Emacs tour [2] to whet your
appetite to the
breadths of features that Emacs provides.
It's a text-mode editor. quod erat
both emacs and vim can pass buffer segments and editing
session information to external (haskell) code, working as
text or file transformers, and both emacs and vim can be
controlled by such external code.
This is what shim tries to do.
I've added a link to the wiki IDE page.
Marc Weber
On Fri, Jun 15, 2007 at 12:40:40PM +0200, Christian Maeder wrote:
Download the new binary dist:
http://www.informatik.uni-bremen.de/agbkb/forschung/formal_methods/CoFI/hets/pc-solaris/versions/new-ghc-6.6.1-i386-unknown-solaris2.tar.bz2
Ian, could you replace
Eric wrote:
I tried to turn off buffering with the command hSetBuffering (from
System.IO) but my app still blocks on hGetContents (from
Data.ByteString). Does anyone know what's happening?
The hGetContents function can't behave the way you want, because it's
defined to return the entire
Hello bf3,
Saturday, June 16, 2007, 3:23:40 PM, you wrote:
The point I wanted to make is, that I can't find an
easy-to-install-ready-to-use-and-rock-n-roll IDE for Windows that comes with
all or most of those features. I mean something like Borland TurboPascal
it's well-known trap. haskell
Bryan O'Sullivan wrote:
Eric wrote:
I tried to turn off buffering with the command hSetBuffering (from
System.IO) but my app still blocks on hGetContents (from
Data.ByteString). Does anyone know what's happening?
The hGetContents function can't behave the way you want, because it's
defined
Eric wrote:
I've converted to lazy bytestrings. After reading in the bytes from a
network connection I want to save them to a file but now the appendFile
function blocks:
Well, yes. It's presumably waiting for data from the network
connection, because it wants to write out the entire
Bryan O'Sullivan wrote:
Eric wrote:
I've converted to lazy bytestrings. After reading in the bytes from a
network connection I want to save them to a file but now the
appendFile function blocks:
Well, yes. It's presumably waiting for data from the network
connection, because it wants to
That's just my point. Although I have no practical experience with Haskell
(besides writing a simple L-System using HOpenGL), from what I've read Haskell
is indeed much better than typical OO languages... So it *deserves* an easy
entry level IDE that will get many many more people started with
On Saturday 16 June 2007 21:34:43 Peter Verswyvelen wrote:
That's just my point. Although I have no practical experience with Haskell
(besides writing a simple L-System using HOpenGL), from what I've read
Haskell is indeed much better than typical OO languages... So it *deserves*
an easy entry
Hello Peter,
Sunday, June 17, 2007, 12:34:43 AM, you wrote:
nowadays have with Visual Studio 2005 and Resharper for doing
compilation, code-documentation-tips, code-completion, refactoring,
navigation, debugging, boiler plate code generation, is amazing.
with emacs/vim you will get
On Sat, Jun 16, 2007 at 07:03:24PM +0200, Andrea Rossato wrote:
Hi,
I'm trying, without success, to create a window with the attribute
override_redirect set to True (this way the window manager should not
take care of it). Obviously with Xlib (X11-1.2.2).
just for the sake of
While we're on the topic of IDE features.
I wish to have an editor that ran GHC[I] every few seconds or so, and
underlined sites of syntax errors in red. This would save me a lot of
back-and-forth. If an editor did this, I would switch (from kate) in a
heartbeat.
This has been mentioned
On Sat, Jun 16, 2007 at 06:14:38PM -0400, Christopher Lane Hinson wrote:
While we're on the topic of IDE features.
I wish to have an editor that ran GHC[I] every few seconds or so, and
underlined sites of syntax errors in red. This would save me a lot of
back-and-forth. If an editor
On Sat, Jun 16, 2007 at 11:39:51PM +0200, Andrea Rossato wrote:
On Sat, Jun 16, 2007 at 07:03:24PM +0200, Andrea Rossato wrote:
Hi,
I'm trying, without success, to create a window with the attribute
override_redirect set to True (this way the window manager should not
take care of it).
I wish to have an editor that ran GHC[I] every few seconds or so, and
underlined sites of syntax errors in red. This would save me a lot of
back-and-forth. If an editor did this, I would switch (from kate) in a
heartbeat.
in vim, that's called quickfix mode, and vim is certainly not the
Hi Peter,
I'm also just starting to learn Haskell and tried the eclipsefp
eclipse plugin [1] (since my day job is java development). It seems a
little basic at the moment, but judging from this blog [2] it seems to
have a lot of potential. In fact part of the project seems to be to
allow the
simonmarhaskell:
Henning Thielemann wrote:
The program is compiled with GHC-6.4 and option -O2, CPU clock 1.7 GHz.
ByteString is much faster with GHC 6.6, IIRC. We optimised the
representation of ForeignPtr, and ByteString takes advantage of that. I
recommend upgrading.
Yes, a 2x
On Sat, 2007-16-06 at 00:24 +0200, Marc Weber wrote:
- syntax highlighting
Many editors do support this. (JEdit, vim, emacs, kedit,..)
With the caveat that syntax highlighting is broken out of the box in
vim. It works fine for plain .hs files but breaks -- and badly -- for
latex-literate
On Sat, 16 Jun 2007 19:16:11 +0200
Marc Weber [EMAIL PROTECTED] wrote:
This is what shim tries to do.
I've added a link to the wiki IDE page.
Is some (more) support for vim in shim planned?
Sincerely,
Gour
signature.asc
Description: PGP signature
Indeed, that's what I forgot to mention, Resharper in Visual Studio 2005
does that for C#, IntelliJ Eclipse for Java. You rarely need compilation,
its syntax checker runs inplace and incrementally and shows you the errors
and warning in the right margin. That saves you a lot of time.
For
58 matches
Mail list logo