On 9 Aug 2013, at 06:43, Vagif Verdi vagif.ve...@gmail.com wrote:
Leksah is a linux program intented to run on linux.
No, it is also intended to run on OS X and Windows.
You can (in some cases) successfully install and run it on windows, but you
would need to go through certain steps
Ah, thanks, folks!
I'll just implement my own hashing by generating a string and calling the
hash function on that. That's what I was doing in the old version of my
code, anyway.
It's just that in the core Data.HashTable, you had to provide a hash
function, so the point where I used the hash
On 9 Aug 2013, at 07:58, Gregory Weber gdwe...@iue.edu wrote:
GTK and its (non-Haskell) dependencies seem to be the tricky part.
I found the instructions for installing Gtk2hs on Windows
http://www.haskell.org/haskellwiki/Gtk2Hs/Installation#Windows
a bit sketchy, so wrote a blog post
I chose not to introduce another dependency. I just implemented the hash
function by delegating to the Show instance of the nested type:
data ValType = FloatType | IntType | StringType
deriving (Show,Eq)
data VarName = VarName ValType String
deriving (Show,Eq)
instance Hashable VarName
Here's another way to do it:
data ValType = FloatType | IntType | StringType
deriving (Show,Eq)
instance Hashable ValType where
hash FloatType = 0
hash IntType = 1
hash StringType = 2
data VarName = VarName ValType String
deriving (Show,Eq)
instance Hashable VarName where
You will need Leksah 0.13 for GHC 7.6.3 and it is not in Hackage yet.
It is almost ready though. If run
git clone https://github.com/leksah/leksah.git
cd leksah
cabal install cabal-meta cabal-src
cabal-meta install
It would be interesting to know if it works for you.
On 20 Jun 2013, at 13:41,
Hi,
If you go the EclipseFP approach, you may have installations troubles
too. In my case, it was due to having a version of GHC and libraries
that EclipseFP doesn't like.
Once I got it to work, I loved it.
David.
2013/8/8 Dorin Lazar dorin.la...@gmail.com:
Hi,
I understood what's wrong
Hello,
I am currently writing an application which draws the structure of some
packets with help of the diagrams library directly to a GTK GUI.
Now the packets can have several hundreds of parameters which have to be
drawn so it takes some seconds to calculate the diagram itself. Of
course
For those who want to be productive rather than talkative masoquists (thus
said with all my love ;)), there are windows installers for Leksah and they
work perfectly well.
2013/8/9 David Virebayre dav.vire+hask...@gmail.com
Hi,
If you go the EclipseFP approach, you may have installations
Hi,
In Template Haskell, what is the proper way of signalling an error ?
For example, you are generating code and you detect that a given
parameter does not fulfill a precondition (e.g., String is empty), and
you want to abort compilation with a descriptive error message.
Thanks,
Jose
--
Jose
The Template Haskell quotation monad (Q) has proper support for fail:
module A where
import Language.Haskell.TH
foo :: Q Exp
foo = fail Custom compile error!
and
module B where
import A
main :: IO ()
main = print $foo
gives
B.hs:6:14:
Custom
Thank you!
--
Jose Antonio Lopes
Ganeti Engineering
Google Germany GmbH
Dienerstr. 12, 80331, München
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Christine Elizabeth Flores
Steuernummer: 48/725/00206
You may also want to check out this freshly-minted page on the wiki:
http://ghc.haskell.org/trac/ghc/wiki/Newcomers
Every now and again, someone asks exactly the same question that you
did, so I've created that page to help answer it. I hope you find it
useful.
Happy hacking!
Richard
On
Hi,
In the last 2-3 weeks I've been working on Haskell indentation inside
Emacs. I had some annoyances for a long time and fixed some of them.
The new mode is called hi2, it's heavily based on the current
haskell-indentation (part of haskell-mode). The changes are mainly to
the UI, although, I
On Fri, Aug 09, 2013 at 12:53:56PM +0200, Gergely Risko wrote:
In the last 2-3 weeks I've been working on Haskell indentation inside
Emacs. I had some annoyances for a long time and fixed some of them.
The new mode is called hi2, it's heavily based on the current
haskell-indentation (part
Wouldn't the implementation hiding feature of the *newtype *idiom be
broken, if field selectors were not first class functions? For instance,
the following code (taken shamelessly from Ch. 10 of *Real World Haskell*):
module Parse (
runParser
) where
data ParseState = ParseState {
string
On Thu, Aug 8, 2013 at 7:40 AM, Timon Gehr timon.g...@gmx.ch wrote:
You make the distinction between evaluate,
Which essentially means applying reduction rules to an expression until
the result is a value.
and execute or run, etc. This is not functional.
How would you know?
I think
I would need some help to get to a reasonable function involving the DB
read, addition and multiplication.
for 0 = i row dimension of A
for 0 = j column dimension of B
for 0 = k column dimension of A = row dimension of B
sum += (read A (i,k))* (read
Hello cafe,
I'm very happy to announce the release of hi, a Haskell project generator.
http://hackage.haskell.org/package/hi
This application will generate a scaffold for new Haskell project with
given command line argument(or value in configuration file), using git
repository as a template.
On 2013-08-09 17:04, Joerg Fritsch wrote:
I would need some help to get to a reasonable function involving the
DB read, addition and multiplication.
for 0 = i row dimension of A
for 0 = j column dimension of B
for 0 = k column dimension of A = row dimension of B
sum += (read A
On 2013-08-09 17:28, Frerich Raabe wrote:
On 2013-08-09 17:04, Joerg Fritsch wrote:
for 0 = i row dimension of A
for 0 = j column dimension of B
for 0 = k column dimension of A = row dimension of B
sum += (read A (i,k))* (read B(k,j))
[..]
-- This is one way to write your pseudo
Hi Michael,
On 09/08/13 08:21, Michael Oswald wrote:
Hello,
I am currently writing an application which draws the structure of some
packets with help of the diagrams library directly to a GTK GUI.
Now the packets can have several hundreds of parameters which have to be
drawn so it takes
I have the impression that a nice part of our dispute comes from the
fact that despite our ambitions, and a decent /technical/ level of
understanding of what we are talking about, most of us are (and I am one
of the worst...) --
-- pitiful philosophers...
Really bad...
Confusing the contents
On Fri, Aug 9, 2013 at 5:44 PM, Jerzy Karczmarczuk
jerzy.karczmarc...@unicaen.fr wrote:
I have the impression that a nice part of our dispute comes from the fact
that despite our ambitions, and a decent /technical/ level of understanding
of what we are talking about, most of us are (and I am
On Fri, Aug 9, 2013 at 10:44 PM, Jerzy Karczmarczuk
jerzy.karczmarc...@unicaen.fr wrote:
I decided to reread some philosophical texts, and I suggest one for your
evening reading.
Indiscrete Thoughts by Gian-Carlo Rota, published by Birkhäuser in 1997.
Available on the Web.
I'm rather fond
On 09/08/13 16:35, Hamish Mackenzie wrote:
You will need Leksah 0.13 for GHC 7.6.3 and it is not in Hackage yet.
It is almost ready though. If run
git clone https://github.com/leksah/leksah.git
cd leksah
cabal install cabal-meta cabal-src
cabal-meta install
It would be interesting to know if
Cool, BasicPrelude solves my problem perfectly!
On Thu, Aug 8, 2013 at 7:04 AM, David McBride toa...@gmail.com wrote:
I've started using BasicPrelude with -XNoImplicitPrelude in all of my
code. It imports all of those and some other stuff as well (text related
functions). Cuts down on my
27 matches
Mail list logo