perfect, thanks. i should've checked the wiki, which does mention glob
patterns, even though the --help doesn't.
martin
On Sun, Aug 31, 2014 at 2:18 AM, lilydjwg lilyd...@gmail.com wrote:
On Sun, Aug 31, 2014 at 01:00:21AM +0200, Dominik Peteler wrote:
Hello Martin,
this is indeed an
| grep haskell- | tr '\n' ',')
There are probably other solutions with sed, awk, ...
Cheers
mmh
On Sat 2014-08-30 14:06, Martin DeMello wrote:
I regularly get into version pinning conflicts with my haskell- packages.
The current one has been going on for some days now:
$ sudo pacman
On Thu, May 29, 2014 at 10:03 AM, Magnus Therning mag...@therning.org
wrote:
It's easy to get confused by the package cabal-install installing a
tool called `cabal`, while the underlying library is called Cabal.
So, when you run `cabal --version` you are checking which version of
I had the same problem (among others) while trying to install
haskell-elm, incidentally. it might be due to there being both
haskell-core/cabal-install 1.18.0.3-8 [installed]
extra/cabal-install 1.20.0.1-1 [installed: 1.18.0.3-8]
but haskell-core is before extra in my pacman.conf. full list
I'm writing a gtk2hs-based text editor, and would like to implement
continuous (swap-file based) autosave the way vim and emacs do it. Any
suggestions for how to implement this in a cross-platform manner?
Also, is there a library that returns standard config file locations
on a per-platform
Says posix only. But googling for it brought up System.IO.MMap, which
does seem to be cross-platform.
martin
On Tue, Jan 17, 2012 at 5:46 PM, Matthew Farkas-Dyck
strake...@gmail.com wrote:
http://hackage.haskell.org/package/bytestring-mmap
On 17/01/2012, Martin DeMello martindeme
On Tue, Jan 17, 2012 at 5:49 PM, Erik de Castro Lopo
mle...@mega-nerd.com wrote:
Matthew Farkas-Dyck wrote:
http://hackage.haskell.org/package/bytestring-mmap
Since he's editing text, its a pity there isn't a text-mmap
package :-).
Further question - my internal data representation is a
On Tue, Jan 17, 2012 at 6:24 PM, Erik de Castro Lopo
mle...@mega-nerd.com wrote:
Martin DeMello wrote:
Further question - my internal data representation is a vector of
strings (it's a line-based editor).
String or ByteString or Text?
If its either of the first two, I think you should
I'm writing a Gtk2hs app, and I have several custom widgets that are
composite objects represented by records, one field of which is a
container widget. I am trying to write a replacement for gtk2hs's
boxPackStart
boxPackStart :: (BoxClass self, WidgetClass child) = self - child -
Packing - Int -
A good compromise might be opa (not used it myself, but I've been
reading up on it as a possible candidate for any personal web projects
I might want to do). It is not haskell, but it is ML-derived, and
specifically for webapps. It has some example apps available, though
nothing near the volume of
On Tue, Dec 20, 2011 at 3:10 PM, Chris Wong
chrisyco+haskell-c...@gmail.com wrote:
Why not expand it even further?
class Monoid m where
(•) :: m - m - m
(∅) :: m
(∈) :: (Foldable t, Eq a) = a - t a - Bool
(∘) :: (b - c) - (a - b) - (a - c)
(∧) :: Bool - Bool - Bool
etc.
We
On Tue, Dec 13, 2011 at 2:34 AM, Adrien Haxaire adr...@haxaire.org wrote:
Regarding, your question whether this is worth switching from vim to
emacs. I've been using both editors for some years and I very much
doubt, that you wouldn't spend much time learning emacs. If you are
comfortable
The vim autoindent for haskell is really bad :( Is there a better
indent.hs file floating around somewhere? Alternatively, is the emacs
haskell mode better enough that it's worth my time learning my way
around emacs and evil?
martin
___
Haskell-Cafe
I have the following functions:
makePair :: (String, String) - IO PairBox
parseFile :: String - [(String, String)]
importFile :: Editor - String - IO ()
importFile ed path = do
s - readFile path
ps - mapM (\x - makePair (x, )) (lines s)
es - return $ V.fromList ps
writeIORef ed es
On Tue, Nov 29, 2011 at 12:35 AM, Stefan Holdermans
ste...@vectorfabrics.com wrote:
Have you considered abstracting over the bits in which importFile and
loadFile differ? For example:
processFile :: (String - IO [PairBox]) - Editor - String - IO ()
processFile f ed path = do
s -
On Tue, Nov 29, 2011 at 12:55 AM, Stefan Holdermans
ste...@vectorfabrics.com wrote:
Martin,
(The trick with `flip` is tempting, but again at the
cost of having to peer rather too closely at the implementation of
processFile when reading the code).
That trick is of course completely
On Sun, Aug 22, 2010 at 5:04 PM, Stephen Tetley
stephen.tet...@gmail.com wrote:
Andrew, I was going to chastise you for being the only Windows
developer who has problems with MinGW / MSYS and spreading that
unpleasant internet commodity FUD. However, I've just gone back to
mingw.org and its
Mythryl [http://mythryl.org/] is an ML dialect that mostly puts an
Algolish syntax and some good posix interoperability atop SML/NJ. More
than the language (which doesn't seem to be as tastefully designed as
Haskell, particularly in terms of syntax - what do people have against
MLish syntax
Sure, sounds like fun :) I keep trying to learn Haskell and getting
nowhere, but the thing is I keep trying!
martin
On Mon, Jun 21, 2010 at 10:00 AM, C K Kashyap ckkash...@gmail.com wrote:
Hi,
I was wondering if it would be a good idea for the folks interested in
Haskell in Bangalore to get
On Tue, Mar 30, 2010 at 2:07 AM, Joachim Breitner
m...@joachim-breitner.de wrote:
I’m a computer science student in Germany and I’d like to spend one
semester as an exchange student in India. I have no specific plans yet
where I want to go, and I’m wondering if there are universities in India
Has there been real world adoption of any of these, in the shape of
a moderately complex end-user application that is not just a library
demo?
martin
On Mon, Nov 23, 2009 at 8:48 AM, Keith Holman hol...@gmail.com wrote:
You should also check out Fudgets and Tangible Functional
Programming.
On Fri, Nov 20, 2009 at 9:36 PM, Victor Mateus Oliveira
rhapso...@gmail.com wrote:
I'm looking for something more integrated with a gui library. The
jgraph integrates with swing, so you can move, create, delete, have
popup menus, select nodes, and so on.
I haven't found yet.. If there isn't,
On Wed, Nov 4, 2009 at 10:34 AM, Richard O'Keefe o...@cs.otago.ac.nz wrote:
(4) It comes with its own IDE. I don't think it can do anything much that
Haskell tools can't do, but if you don't like looking for things, it's
a help.
And a well-integrated GUI toolkit. If it weren't for the
What 2d graphics library would be the best fit for this sort of thing?
http://www.superliminal.com/geometry/tyler/gallery/circular/tiles060.html
I took a look at diagrams but it seemed more geared towards things
that fit on a rectangular layout.
martin
I've been wondering - Clean ships with a fairly capable looking GUI
toolkit
[http://clean.cs.ru.nl/About_Clean/Standard_I_O_Lib/standard_i_o_lib.html]
- has anyone used it? How does it compare to the available Haskell
options?
martin
___
Haskell-Cafe
On Mon, Jan 12, 2009 at 4:00 AM, Don Stewart d...@galois.com wrote:
Arch Haskell News: Jan 11 2009
Hey all, welcome to the first Arch Haskell News of 2009. (News about
Haskell on the Arch Linux platform).
Arch now has 827 Haskell packages in AUR.
FWIW I just replaced gentoo[1] on my
Something incorporating λ∀ perhaps
martin
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Tue, Nov 4, 2008 at 9:05 AM, Martijn van Steenbergen
[EMAIL PROTECTED] wrote:
For my mud client Yogurt (see hackage) I'm currently working on
improving the efficiency of the hooks. Right now several hooks, each
consisting of a regex and an action can be active at the same time.
Every time
On Fri, Oct 10, 2008 at 2:31 PM, Jonathan Cast
[EMAIL PROTECTED] wrote:
On Fri, 2008-10-10 at 17:13 -0400, Steve Schafer wrote:
On Fri, 10 Oct 2008 11:05:43 -0700, Jonathan Cast wrote:
No reason not to expose newcomers to Haskell to the thing it does best.
This is precisely why newcomers
2008/10/4 Jason Dagit [EMAIL PROTECTED]:
3) Write a python generating EDSL in Haskell
strong arguements against it. The main problem with #3, is that if I share
code with other devs they have to learn Haskell and my EDSL since they won't
be able to just hack the generated python, similar
On Tue, Sep 30, 2008 at 9:01 PM, Duncan Coutts
[EMAIL PROTECTED] wrote:
On Wed, 2008-10-01 at 01:59 +0200, Cetin Sert wrote:
A reminder:
When I wanted to upgrade to yi 0.4.6.2, I needed to download the new
package list
cabal update #download list of new packages
cabal upgrade
On Wed, Oct 1, 2008 at 1:04 PM, Svein Ove Aas [EMAIL PROTECTED] wrote:
On Wed, Oct 1, 2008 at 9:52 PM, Martin DeMello [EMAIL PROTECTED] wrote:
$ cabal install yi
Resolving dependencies...
'yi-0.4.6.2' is cached.
Configuring yi-0.4.6.2...
cabal: alex version =2.0.1 3 is required
2008/10/1 wman [EMAIL PROTECTED]:
PS: Sorry, Andrew, that I first posted the reply directly to you, still
getting used to the fact that gmail kindly replies to the user on whose
behalf the message was sent, not to the list.
I think that's a list setting, not a gmail one.
martin
On Wed, Oct 1, 2008 at 1:06 PM, Gwern Branwen [EMAIL PROTECTED] wrote:
Yi fails on Alex because Cabal doesn't track executables, nor executables
needed for installation. You want 'cabal install alex yi';
Yay, that finally worked :) Had to add ~/.cabal/bin to my path first,
which wasn't hard
2008/10/1 Joachim Breitner [EMAIL PROTECTED]:
You shoot the gun, but nobody notices because no-one evaluates the
target.
Who'd've thunk it!
m.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
On Wed, Oct 1, 2008 at 3:39 PM, Bill [EMAIL PROTECTED] wrote:
On Wed, 2008-10-01 at 16:46 -0400, John Van Enk wrote:
. . .
I fully realize how un-clever this is. Some one please give me
something more worth of the original list. :)
You shoot the gun but nothing happens (Haskell is pure,
On Fri, Sep 26, 2008 at 1:03 PM, Achim Schneider [EMAIL PROTECTED] wrote:
Miguel Mitrofanov [EMAIL PROTECTED] wrote:
I think you might be interested in
http://www.research.att.com/~bs/whitespace98.pdf
Instead, it was decided to by default limit identifiers to a single
character
The Wisdom
I'm running Ubuntu 8 (Hardy Heron), and while trying to install cabal
ran into this bug:
https://bugs.launchpad.net/ubuntu/+source/haskell-cabal/+bug/231099
I finally had to install cabal manually, but it took me a lot of
googling to be sure that was the right thing to do. Could someone who
Could someone give me an example of calling setWMHints from
Graphics.X11.Xlib.Extras? The signature is
setWMHints :: Display - Window - WMHints - IO Status
and WMHints is defined as
data WMHints = WMHints {
wmh_flags :: CLong
wmh_input :: Bool
wmh_initial_state :: CInt
wmh_icon_pixmap :: Pixmap
On Wed, Jul 2, 2008 at 2:16 PM, Neil Mitchell [EMAIL PROTECTED] wrote:
Hi Martin,
I can't figure out how to convert an Int to a CInt to construct the WMHints
Ask Hoogle:
http://haskell.org/hoogle/?q=Int+-%3E+CInt
Nice
And Hoogle says:
toEnum, fromIntegral
thanks a lot :)
martin
haven't been able to get to it in a couple of days (at least)
martin
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On Fri, Jun 27, 2008 at 9:25 AM, Simon Peyton-Jones
[EMAIL PROTECTED] wrote:
| Subject: [Haskell-cafe] what's up with hackage.haskell.org?
|
| haven't been able to get to it in a couple of days (at least)
It's offline for 24 hrs while Galois move office.
Ah, okay :) Just noticed it when I
Anyone written a windowmaker dockapp in Haskell? I thought it'd be a
fun project, but I don't quite know where to start.
martin
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
I finally ditched sabayon for ubuntu (one wireless problem too many),
and now I'm slowly getting stuff set up on it. Any Ubuntu people care
to share their experiences? I'm especially looking for guidelines on
what to install via apt-get and what to install independently.
Also, while I'm making
On Thu, Jun 5, 2008 at 12:47 AM, Ketil Malde [EMAIL PROTECTED] wrote:
Martin DeMello [EMAIL PROTECTED] writes:
I'm especially looking for guidelines on what to install via apt-get
and what to install independently.
I'd get as much as possible via apt-get, and only install manually
when
On Tue, Apr 1, 2008 at 3:41 PM, Dan Weston [EMAIL PROTECTED] wrote:
Nor did I use to take
perfectly working code and refactor it until it cried for mercy, and then
stay awake wondering if there was some abstraction out there I was missing
that would really make it sing.
I find myself doing
On 11/6/07, Maurício [EMAIL PROTECTED] wrote:
Maybe (and only maybe), before choosing a
distribution, you should choose a package system,
since that's what you are going to use to install
software. Look for RPM and APT, and see what you
think. With my package system (I don't wanna give
you
On 10/5/07, Don Stewart [EMAIL PROTECTED] wrote:
It has been suggested we could just sit DrScheme in front of ghc/ghci.
Anyone with experience who'd like to step up for this?
Note that there's a DrOCaml, which might be a good starting point.
martin
On 8/26/07, Sven Panne [EMAIL PROTECTED] wrote:
This is actually not a bug, but a feature. :-) From the Haddock docs for
renderString:
Render the string in the named font, without using any display lists.
Rendering a
On 7/19/07, Claus Reinke [EMAIL PROTECTED] wrote:
the idea is well known: build your app as a server, and put
an ajax-based gui in front of it, even if server and browser
run on the same machine.
A more desktopy alternative: http://www.gtk-server.org/
martin
On 2/26/07, Chris Eidhof [EMAIL PROTECTED] wrote:
Hey everyone,
we added some examples to this page. There are some topics that don't
have any examples, notably:
# 11 Network Programming
# 12 XML
* 12.1 Parsing XML
# 13 Databases
* 13.1 MySQL
* 13.2 PostgreSQL
* 13.3 SQLite
On 2/22/07, Gene A [EMAIL PROTECTED] wrote:
The functions as I originally defined them are probably
easier for someone new to Haskell to understand what was going on than the
rather stark ($ a) in the final factoring of the function... Though the
final resulting function is far the cleaner for
Code here: http://zem.novylen.net/anagrid.html
I've got an instance of IO appearing unexpectedly and I can't figure
out where from. It throws up the following error:
$ ghc --make test.hs
Chasing modules from: test.hs
Compiling Main ( test.hs, test.o )
test.hs:38:15:
Couldn't
On 2/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hello,
how would you convert Boolean triples to strings, in the IO function?
printStrings :: (Bool,Bool,Bool) - IO ()
Take a look at 'show':
Prelude show True
True
martin
___
Haskell-Cafe
On 2/5/07, Bulat Ziganshin [EMAIL PROTECTED] wrote:
Hello J.,
Sunday, February 4, 2007, 11:46:57 PM, you wrote:
exists s wmap = isJust $ find (==s) . snd = Map.lookup (sort s) wmap
exists s wmap = Map.lookup (sort s) wmap
== snd
== find (==s)
On 2/5/07, Martin DeMello [EMAIL PROTECTED] wrote:
On 2/5/07, Matthew Brecknell [EMAIL PROTECTED] wrote:
This is probably what you wanted (untested):
w - readWords words
words - varCreate w
That didn't work, because (as someone on #haskell explained to me)
readWords has type IO and the wx
I have a Data.Map.Map String - (Layout, [String]) as follows:
type Anagrams = [String]
type Cell = (Layout, Anagrams)
type WordMap = Map.Map String Cell
exists str wmap =
let a = Map.lookup (sort str) wmap in
case a of
Nothing - False
Just x - case (find (== str) (snd
I'm having a lot of trouble mixing file io and wxhaskell's
varCreate/Get/Set functions. I have functions
readWords :: String - IO WordMap
wordGrid :: WordMap - Layout
And within my GUI code, the following compiles (ignores the variable,
basically):
words - varCreate (do {w - readWords words;
On 2/5/07, Matthew Brecknell [EMAIL PROTECTED] wrote:
I'm not familiar with wxHaskell, but I don't think wxHaskell is your
problem here. It looks like you are confusing yourself with overuse of
do notation, and perhaps a lack of understanding of the monad laws.
Whenever you see this:
v - expr
On 2/3/07, Matt Revelle [EMAIL PROTECTED] wrote:
hReadUntilStr :: (Num a) = Handle - String - a - IO (String, Bool)
Is this the wrong way to think about the problem? If so, how should
it be handled? If not, any ideas on the implementation?
Sounds like this would grow into a full-fledged
On 2/1/07, Donald Bruce Stewart [EMAIL PROTECTED] wrote:
So a big hello to any Ruby/Rails hackers lurking out there!
Free lambdas for all if you drop by #haskell...
I came to Haskell from Ruby the first time around, but didn't have
anything real to write in it so I lost steam somewhat. This
61 matches
Mail list logo