I'd like to share Michael Snoyman's Classy Prelude:
http://www.yesodweb.com/blog/2012/07/classy-prelude . The basic gist of
the work is that many of the standard prelude functions are made for
concrete types such as [a], [(a,b)], and [Char] but can be much more
polymorphic. While this
If you want to use the library and need a short term fix, just write a small
wrapper type/module
newtype SizedMap = SizedMap (Int, HashMap) and track the size yourself. only
complication is that on inserts and deletes you'll need to check if the key
existed. other than that, it shouldn't be
I originally posted this on haskell-GHC-users, but was curious how the wider
community felt.
The last 32-bit, Intel Mac was the Mac Mini, discontinued in August 2007. The
bulk of them were discontinued in 2006, along with PowerPC Macs. Does it make
sense to relegate OSX x86_64 to community
Just out of curiosity, has anyone gotten this to work? I'm getting bus errors
whenever I call readImage.
If anyone out there has gotten it working and would tell me which versions
they're using of the relevant bits, that would be very much appreciated. Also,
I'll post all my debug info if
I'm not sure I can make sense of what you mean here. Given the preamble, I'd
guess you're asking whether we should make x86_64 the targeted architecture
for OSX support, and reclassify 32-bit OSX to unsupported or hopefully it
still works status. (But in that case, it's the 32-bit which
Doesn't 10.5.x have the ability to generate and run 64-bit binaries?
mc
On Feb 4, 2011, at 10:19 AM, wren ng thornton wrote:
Max Cantor wrote:
someone? wrote:
I think the original poster is saying that the targeted architecture for OS
X support
should be the architecture that OS X assumes
January has come and gone and HP 2011 has not come with it. Is there an
updated timetable for the next version of the HP? I'm not complaining or upset
or whining, just trying to plan.
Great work so far, looking forward to HP 2011!
mc
___
Did you check haskellers.com?
If you come down south there's a decent group here in Singapore.
Max
On Dec 1, 2010, at 4:58 AM, Pasqualino Titto Assini wrote:
Hello,
I am going to Taiwan with my family for about five weeks (I am
Italian, my wife is Taiwanese and we have two kids) and I
FYI,
I implemented an error monad using this church-encoded either instead of the
conventional either. my thought was that since you skip the conditional at
each bind call you'd get better performance. I was quite mistaken.
Max
On Nov 2, 2010, at 6:40 AM, Jeremy Shaw wrote:
Looks a lot
Remember that Banks/Financial Firms/Investment Banks were among the first big
uses of punch card readers, mainframes, cobol, C, C++ (and OOP), VBA, Java..
I'm not saying if I like any of those languages (my presence on this list
should give a clue how I feel) but investment banks picking up FP
I have a similar issue, I think. The problem with attoparsec is it only covers
the unmarshalling side, writing data to disk still requires manually
marshalling values into ByteStrings. Data.Binary with Data.Derive provide a
clean, proven (encode . decode == id) way of doing this.
If
I have a series of files with binary encoded data in them, and want to create
an enumerator iterates on the first element at the front of all the files.
Something like the pseudocode: return . minimum = mapM (fmap (heads . lines)
readFile) listOfFileNames
I can use convStream to create an
I use Apache Thrift, as someone else mentioned for IPC with some java code that
connects to a third party data vendor. As of version 0.2, there are some bugs
that you need to be aware of.
However, and possibly more of interest to you, I have already written a FIX
implementation in pure
Is there a reason that EnumMap specifically requires containers 0.3 or just a
matter of not having been tested? It seems to compile just fine (but with one
warning for a deprecated call).
Max
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
Wasn't implying that they should. My bad for not checking the relative release
dates, but, even had I checked, its still reasonable to ask if there are known
issues, isn't it?
Max
On Jul 12, 2010, at 11:06 AM, Ivan Miljenovic wrote:
On 12 July 2010 13:04, Max Cantor mxcan...@gmail.com
selamat datang!
On Jun 18, 2010, at 9:27 PM, Jean-Denis Koeck wrote:
Hi! I'm of Indonesian descent (by my mother) and I'll be there this summer.
Nice to meet you!
Jean-Denis
2010/6/15 vipex.id vipex...@gmail.com
Hi, I'm new in Haskell wondering is there Indonesian people using Haskell
Given that I can see Indonesia (pulau batam) from my bedroom window, I'm going
to say that I didn't cross any lines..
On Jun 16, 2010, at 6:17 AM, Ivan Lazar Miljenovic wrote:
Max Cantor mxcan...@gmail.com writes:
Its not indonesia, but the Singapore FP Users is pretty close by.
[snip
Its not indonesia, but the Singapore FP Users is pretty close by. We aren't
limited to just Haskell but there are several haskellers in the group. If
you'd like to join us, drop an email to:
singapore-functional-programm...@googlegroups.com
Max
On Jun 15, 2010, at 7:11 PM, leledumbo wrote:
I think Haskell would be an excellent choice.
Several reasons come to mind:
Given the arbitrary complexity of such projects, an EDSL describing book
entries etc would be a very good fit for the project. As people have said once
or twice, Haskell is a great fit for EDSLs
If you want to get
So I understand from http://hackage.haskell.org/trac/ghc/ticket/4083 that
GeneralizedNewtypeDeriving doesn't play well with TypeFamilies.
But, if a typeclass is only using type synonyms, is there any reason why
newtype deriving would not work? For a toy example:
class Cls a where
type
Where is my bind statement doing a case analysis? Isn't it just propagating, in
a sense, the case analysis that came from values coming into the monad via
return or via throwError?
Also, why wouldn't callCC work here? I'm not that familiar with the ContT
monad so any more details would be
Based on some discussions in #haskell, it seemed to be a consensus that using a
modified continuation monad for Error handling instead of Eithers would be a
significant optimization since it would eliminate a lot of conditional
branching (everytime = is called in the Either monad, there is a
Makes sense. From what you wrote, it seems like this might be a dead-end and
can't really be optimized away. Do you agree?
Max
On May 10, 2010, at 8:38 PM, Jan-Willem Maessen wrote:
On Mon, May 10, 2010 at 5:38 AM, Max Cantor mxcan...@gmail.com wrote:
Based on some discussions
I'm in the camp of adding -fno-warn-unused-do-bind to my cabal files. I hate
sacrificing the purity of -Wall but I have so many forkIOs in my code that I
think it was the best option.
Max
On Apr 10, 2010, at 3:08 PM, Ivan Miljenovic wrote:
On 10 April 2010 02:07, Bryan O'Sullivan
Isn't this just an extension of the notion that multi-parameter typeclasses
without functional dependencies or type families are dangerous and allow for
type-naughtiness?
On Mar 9, 2010, at 5:45 AM, Wolfgang Jeltsch wrote:
Hello,
some time ago, it was pointed out that generalized
That stuffed me up for a bit. I wrote some ugly template haskell a while back
to automatically generate XmlPickler instances. can send to you if you want
On Dec 23, 2009, at 7:55 AM, Tony Morris wrote:
Adding (a_remove_whitespace,v_1) as a parser option when running solves
it. Silly me.
I actually ran into this problem last night. Here's my workaround (note that
it involves downgrading to zlib-0.5.0.0
1) unregister the zlib-0.5.2.0 package (prompt ghc-pkg unregister zlib-0.5.2.0)
2) rebuild and install cabal-install:
prompt tar -zxvf
We are organizing a Functional Programming Users Group in Singapore
and our first meeting is Monday, November 2nd at 6 pm. We will meet
initially in the Lobby of 8 Shenton Way.
Map: http://bit.ly/1PzqlB -or-
It is pretty amazing what such a small coterie of devs has
accomplished in GHC. Compare this to the thousands that work on GCC/
javac/csc and vis studio etc. So, once again, kudos.
max
On Oct 16, 2009, at 2:30 AM, Andrew Coppin wrote:
Daniel Peebles wrote:
Well-Typed is in the UK too :)
Haskell, and FP languages more broadly, are finding a pretty solid
niche in small scale, but technically demanding and lucrative
projects. Financial modeling and analytics are the first thing that
comes to mind. The work of Galois, Atom, etc also sort of fit this
mold.
While the people
are not
typically used nor would they be in a finished product. for the time
being, however, I dont know if its better to use Ratio's, Fixed's or
what, so just settled on the most straightforward for now.
On Aug 16, 2009, at 1:26 AM, Jason Dagit wrote:
On Sat, Aug 15, 2009 at 5:15 AM, Max Cantor
Hi all,
I'm putting together some simple tools to do safe calculations on
different currencies. For instance, making sure that you dont add
something like 5 USD + 10 JPY without doing a proper conversion.
I've put up some code on google code which probably explains what I'm
trying to do
Hi Dmitry,
I've been using HXT and its XmlPickler class for encoding and decoding
between XML - Haskell types. It takes a while to wrap your brain
around the arrows based API for HXT (something I'm still working on)
but it seems to be quite powerful and well maintained.
Also, I've
Any chance of renaming it to Advocacy?
On Jul 14, 2009, at 11:42 PM, Cristiano Paris wrote:
On Tue, Jul 14, 2009 at 5:12 PM, Cristiano Parisfr...@theshire.org
wrote:
...
Why don't we create a specific Wiki page about Haskell advocation,
http://haskell.org/haskellwiki/Advocation
Cristiano
I know that this is a bit off topic, but thought it would interest
several readers. Apparently, GS, which. AFAIK, doesn't make a lot of
noise in the FP space compared to some other banks, does use some FP:
http://www.zerohedge.com/article/aleynikov-code-dump-uncovered
Hi Cafe,
I am using the Text.JSON library to [un]marshall messages passed over
the network and was wondering if the speed would be significantly
improved by either changing the code or adding a module to implement
the same functionality using Bytestrings instead of classical
strings? If
I emphatically second this.. (except for using vim instead of emacs)
-Max
On Jul 1, 2009, at 12:03 AM, David Leimbach wrote:
I would love to have a standalone Mac OS X compatible build to try.
As it stands, I have not been successful getting a Cocoa/Carbon GTK
running on Leopard, and
To be fair, isn't the printf typing in ocaml a massively ugly hack to
the type system? Isn't there an example in the template haskell
tutorial that gives a typesafe, clean generic printf function?
Max
On Jun 5, 2009, at 4:29 PM, Erik de Castro Lopo wrote:
o...@okmij.org wrote:
Still,
Hi,
I have developed some simple TH code to automatically derive
XmlPickler instances for my types and if there is interest, I will
clean it up and submit a patch. Its not complete, but is a start.
Any interest?
Max
___
Haskell-Cafe mailing
Going through the instances for HTypeable (http://www.haskell.org/HaXml/HaXml/src/Text/XML/HaXml/TypeMapping.html#toHType
) I saw the following instance for Either a b.
My question is, why doesn't the pattern match in the where clause
always fail? If (Left x) = m does not fail, doesn't that
40 matches
Mail list logo