I've been trying to get my head around the Wadler-Leijen pretty
printing combinators for a while now and having some trouble.
Specifically, I have trouble getting them to pick optimal line breaks.
The existing combinators like 'sep' (and everything built from it)
merge all elements with $ and
From: Felipe Almeida Lessa felipe.le...@gmail.com
To: sdiy...@sjtu.edu.cn
Cc: haskell-cafe@haskell.org
Date: Mon, 19 Mar 2012 14:24:13 -0300
Subject: Re: [Haskell-cafe] Are there arithmetic composition of functions?
import Control.Applicative
f, g :: Float - Float
f x = x + 1
g x = 2 *
Hi,
I have a small project that installs a couple of Haskell tools and a
script that uses these. Cabal will of course build and install the
Haskell programs, but how can I get Cabal to install the script as
well? There's a host of UserHooks available¹, but it'd probably be
better to have an
A quick suggestion - does setting the ribbon_frac to something like
0.8 improve things?
The Show instance for wl-pprint's Doc uses 0.4 which I've found too low.
This means you'll have to write your own display function using
`renderPretty`...
___
On Tue, Mar 20, 2012 at 2:53 AM, Florian Hartwig
florian.j.hart...@gmail.com wrote:
On 19 March 2012 11:46, Ryan Newton rrnew...@gmail.com wrote:
As Adam Foltzer mentioned in the trac ticket a really good structure
would
be the concurrent bags from this paper:
Hi,
sdiy...@sjtu.edu.cn wrote:
I feel it would be very natural to have in haskell something like
g::Float-Float
--define g here
h::Float-Float
--define h here
f::Float-Float
f = g+h --instead of f t = g t+h t
--Of course, f = g+h is defined as f t = g t+h t
One
On 20 March 2012 20:24, Stephen Tetley stephen.tet...@gmail.com wrote:
A quick suggestion - does setting the ribbon_frac to something like
0.8 improve things?
The Show instance for wl-pprint's Doc uses 0.4 which I've found too low.
This means you'll have to write your own display function
Hi list,
hasktags -e generates lines containing the function arguments. For
Example:
f0 foo\x7f5,6
The foo is the function arg, not the keyword to be tagged.
Emacs still finds f0, but it does not show it in tab completion using
m-x find-tag ..
I don't use Emacs myself. That's why I want to
Richard O'Keefe :
You may have no intention of discussing the issue,
but it seems to*me* that this will not work in 2012
Haskell compiler mostly conforming to Haskell 2010
because Haskell 2010 says it shouldn't work is a pretty
sound position to take.
The existence of standards is not an answer
Ahem - there was a severe typo in my last message. Usually I wouldn't
spam the list to repair my failings but edit distance on the error in
that message was so large it made no sense at all.
printing that cannot be undone by `group`, or the combinators that use
group are given more long-winded
Excerpts from Herbert Valerio Riedel's message of Tue Mar 20 15:38:54 +0100
2012:
[1]: http://en.wikipedia.org/wiki/Ctags#Etags_2
\0x7f and \0x1
record and pushed this fix.
Marc Weber
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
On Tue, Mar 20, 2012 at 2:24 AM, Stephen Tetley
stephen.tet...@gmail.com wrote:
A quick suggestion - does setting the ribbon_frac to something like
0.8 improve things?
Nope. The ribbon (IMO both an undescriptive name and underdocumented)
only constraints the number of non-indent characters per
On Tue, Mar 20, 2012 at 6:52 AM, Stephen Tetley
stephen.tet...@gmail.com wrote:
Hi Ivan
I haven't found any bugs in WL, however I do find the API somewhat
confusing regarding line breaking (I would need to consult the manual
to tell you the difference between linebreak, softline etc.). This
Do you see a way that you could incorporate distribution information?
I thought it would be nice to have a second table that correlates
Platform versions with distro releases, because I think this is relevant
to package authors.
Regarding information about Debian sid, I'd like to understand the
I compiled a chart that gives a side-by-side comparison of package
versions in various Haskell Platform releases.
Nice stuff but I cannot see alex or happy there.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
This instance can be made more general without changing the code; change
the first line to
instance Num a = Num (e - a) where
I think this version doesn't even require FlexibleInstances.
This lets you do
f x = if x then 2 else 3
g x = if x then 5 else 10
-- f + g = \x - if x then 7 else 13
On 12-03-19 10:05 PM, Richard O'Keefe wrote:
http://www.haskell.org/onlinereport/haskell2010/haskellch9.html#x16-1710009
Haskell 2010 is already beginning to be out of date.
http://thread.gmane.org/gmane.comp.lang.haskell.libraries/16125/focus=16324
Hi,
Am Dienstag, den 20.03.2012, 18:40 +0100 schrieb Simon Hengel:
Do you see a way that you could incorporate distribution information?
I thought it would be nice to have a second table that correlates
Platform versions with distro releases, because I think this is relevant
to package
Oh man, I came late to this party.
I'll throw what little weight I have here behind Jerry's argument. Yes,
this change to base is not Haskell2010 compatible, but it's still a good
change and I hope that Haskell2012 or 2013 or whatever the next version of
the standard that comes out incorporates
Hi Everyone,
I am strugling to get the following code to work correctly and I'm hoping
someone will be able to shed some light as to why the code is behaving
as it does:
{-| runs the supplied command and args as a SHELL command -}
runShell :: String - IO (String, ExitCode)
runShell
Hi Everyone,
I forgot to say, I am running GHC 7.2.2 on Windows7 x64.
Regards.___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On 21/03/2012, at 2:14 AM, Jerzy Karczmarczuk wrote:
The existence of standards is not an answer concerning their goodness.
Whoever said it was? Not me!
But the existence of implementations that conform to standards
*IS* an answer concerning 'will this WORK?'
I do appreciate that the latest
On Tue, Mar 20, 2012 at 17:51, Rouan van Dalen rvda...@yahoo.co.uk wrote:
If I try to su the runShell function with the following command, it simply
blocks forever:
git --no-pager blame your git file here
but if I do:
git status
The runShell function works as expected. Can
On 21/03/2012, at 9:06 AM, Albert Y. C. Lai wrote:
On 12-03-19 10:05 PM, Richard O'Keefe wrote:
http://www.haskell.org/onlinereport/haskell2010/haskellch9.html#x16-1710009
Haskell 2010 is already beginning to be out of date.
Was there any point in me pointing out that the latest release of
Hi,
I have written a blog post about potential GSoC projects that revolve
around the scoutess project [1] and would, I believe, be useful to the
Haskell community:
http://alpmestan.wordpress.com/2012/03/21/scoutess-continuous-integration-cabal-and-the-google-summer-of-code/
Feel free to give
How are you gentlemen.
I'm interested about what additions to DPH would really benefit
the community.
The only ticket on DPH in GSoC Trac seems a bit stale:
http://hackage.haskell.org/trac/summer-of-code/ticket/1537.
Any new tips?
My field is currently molecular simulation. (I'm doing a Direct
i'm looking for something lightweight, that dosnt need it's own
server, can easily run on cgi on an apache with minimal work, and
dosn't have many dependancies. i was looking at yesod, but it is
bigger than i need for my site (at this point) and would take too much
work to get running on my
27 matches
Mail list logo