[Haskell] Haskell Symposium deadline in 3 weeks

2017-05-01 Thread Iavor Diatchki
erina Komendantskaya University of Dundee Henrik NilssonUniversity of Nottingham Iavor Diatchki (chair)Galois J. Garrett Morris University of Edinburgh Joachim Breitner University of Pennsylvania Juriaan Hage Utrecht University Lennart AugustssonFac

[Haskell] Haskell Symposium Early Deadline in Two Weeks

2017-02-27 Thread Iavor Diatchki
erina Komendantskaya University of Dundee Henrik NilssonUniversity of Nottingham Iavor Diatchki (chair)Galois J. Garrett Morris University of Edinburgh Joachim Breitner University of Pennsylvania Juriaan Hage Utrecht University Lennart Augus

[Haskell] Haskell Symposium 2017, call for submissions

2017-01-30 Thread Iavor Diatchki
will give the program committee a chance to provide feedback and help draw out the key ideas. Program Committee = Adam Gundry Well-Typed Ekaterina Komendantskaya University of Dundee Henrik NilssonUniversity of Nottingham Iavor Diatchki (chair)Galois

[Haskell] ANN: New version of graphmod (1.2.4)

2014-10-03 Thread Iavor Diatchki
Hello, I am pleased to announce a new version of `graphmod`---a program that helps you visualize the import dependencies between the modules in your Haskell programs. The new feature in version 1.2.4 is support for pruning the dependency graph, which is enabled with the flag -p or --prune-edges.

Re: [Haskell] [Haskell-cafe] Job opportunities at Galois

2013-06-27 Thread Iavor Diatchki
o are already eligible to work in the US. -Iavor On Thu, Jun 27, 2013 at 9:03 AM, Alejandro Serrano Mena wrote: > Hello, > Are there any specific details to consider when applying? For example, is > living in the US or having a visa required for application? > > Thanks in advance. &

[Haskell] Job opportunities at Galois

2013-06-27 Thread Iavor Diatchki
Hello, Galois is hiring! We're looking for researchers, principal investigators, and software engineers, including those with expertise in functional programming, formal methods, computer security, control systems, informatics, or networking. For more information, take a look at http://corp.galo

[Haskell] ANN: monadLib-3.7.1 on Hackage

2012-10-01 Thread Iavor Diatchki
Hello, I am pleased to announce the availability of monadLib-3.7.1 on Hackage. MonadLib is a library intended to help programmers to quickly and easily construct various monads. The library has support for a wide range of effects: threading state, read-only variables, collecting output, except

Re: [Haskell] Nominations for the Haskell 2011 committee

2009-12-29 Thread Iavor Diatchki
Hello, I would like to participate in the design of Haskell 2011. I have used Haskell for about 10 years, commercially at Galois Inc, for the last 3. I have a good understanding of all parts of the language and various implementations, and I have a particular interest in its type system and seman

[Haskell] A problem with overlapping instances and super-classes

2008-06-07 Thread Iavor Diatchki
Hello, (you should be able to copy and paste the code in this email into two modules called A and B to try it out) > {-# LANGUAGE OverlappingInstances #-} > module A where This module, together with module 'B', illustrates a problem in some implementations of overlapping instances and their inter

[Haskell] Nested guards?

2007-12-04 Thread Iavor Diatchki
Hi, Lately I have been using pattern guards more than usual and I find that occasionally I need to nest them (i.e., I have alternatives with a common prefix). This seems to happen when I need to do some preliminary checking, followed by some decision making. Here is an example: server text |

[Haskell] Bang patterns and declaration order

2007-11-18 Thread Iavor Diatchki
Hello, I was playing around with "bang patterns" and I noticed that when combined with asynchronous exceptions they can lead to programs where the order of the declarations in a binding group is important! Here is an example: > import Control.Exception > import Prelude hiding (catch) > > main =

Re: [Haskell] [Fwd: undecidable & overlapping instances: a bug?]

2007-10-17 Thread Iavor Diatchki
Hi, Mark is quite right, and there is a bug report that documents the problem: http://hackage.haskell.org/trac/ghc/ticket/1241 The trac ticket is targeting GHC 6.8 but the ticket is still open. I have not had a chance to try out any of the 6.8 release candidates yet, so I am not sure if there have

Re: [Haskell] Module system question

2007-10-16 Thread Iavor Diatchki
Hello, On 10/16/07, Simon Peyton-Jones <[EMAIL PROTECTED]> wrote: > The H98 report is pretty clear about there being a single name space for type > constructors and classes. Yes, in certain circumstances it's unambiguous. > In Hugs, can you write > module M where > class C a

[Haskell] Module system question

2007-10-15 Thread Iavor Diatchki
Hello, I have a question concerning Haskell's module system. Consider the following example which defines three modules A,B, and C: > module A where { data X = X } > module B where { class X a } > module C where { import A; import B; data Y = Y X } The question is: "Is there an ambiguity error i

[Haskell] ANN: monadLib 3.3.0 released

2007-09-17 Thread Iavor Diatchki
Hello, I have put up a new version of monadLib, which is available from hackage: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/monadLib-3.3.0 The changes in this version are fairly small: * added an identity transformer, which is useful as a placeholder in some applications, * re

Re: [Haskell] Views in Haskell

2007-01-24 Thread Iavor Diatchki
Hello, Is this really a good idea? This seems a lot more relevant to the Haskell mailing list then haskell-prime (at least to me)---it is a language extension that is not implemented, there are a number of different ways to implement it, and we have no significant experience using it. As such, i

[Haskell] ANN: monadLib 3.0.0

2007-01-03 Thread Iavor Diatchki
Hello, I have placed a new version of 'monadLib' on its web-page: http://www.csee.ogi.edu/~diatchki/monadLib Some of the changes compared to the previous version: * The whole library is in a single module MonadLib.hs (~500 lines) * Simpler and more symmetric API * Removed the (generic) monadic c

Re: [Haskell] Converting a 'streaming' monad into a list

2006-12-31 Thread Iavor Diatchki
hi, you might find the "backward" state monad interesting. here is the basic idea: newtype S s a = S (s -> (a,s)) instance Monad (S s) where return a = S (\s -> (a,s)) S m >>= k = S (\s1 -> let (a,s3) = m s2 (b,s2) = run s1 (k a) in (b,s3)

Re: [Haskell] Re: Converting a 'streaming' monad into a list

2006-12-31 Thread Iavor Diatchki
hi, On 12/30/06, Ross Paterson <[EMAIL PROTECTED]> wrote: On Sat, Dec 30, 2006 at 10:31:30PM +, Chris Kuklewicz wrote: > But WriterT is not lazy enough. So I put a lazier version up on the wiki: > > http://haskell.org/haskellwiki/New_monads/LazyWriterT Interesting. Writer is lazy but Writ

[Haskell] Contexts on Data Declarations

2006-08-05 Thread Iavor Diatchki
Hello, I was just looking at the details of how contexts on datatypes work in Haskell'98 and I noticed the following. The report states that the context on a particular constructor should contain all those predicates that mention only variables that are in the fields of the constructor. This wor

[Haskell] Parallel list comprahensions

2006-04-25 Thread Iavor Diatchki
Hello, Does the parallel list comprahension notation support guards that involve both variables that are being generated? I was trying to write something that is essentially: [ f x y | (x,y) <- zip xs ys, p x y ] and I thought that it would be nice to rewrite it as a parallel list comprahension, b

[Haskell] ANN: monadLib 2.0

2006-03-19 Thread Iavor Diatchki
Hello everyone, There is now a new version of 'monadLib': a library of monad transformers for Haskell. 'monadLib' is a descendent of 'mtl', the monad template library that is distributed with most Haskell implementations. The library web page is at: http://www.csee.ogi.edu/~diatchki/monadLib Com

Re: [Haskell] Long live Edison

2006-02-20 Thread Iavor Diatchki
Hello, On 2/20/06, John Meacham <[EMAIL PROTECTED]> wrote: > I think the problem is that 'mzero' exists, the correct solution seems > to be to get rid of the 'mzero' method of MonadPlus. Since haskell is > lazy, all Monads have at least the zero of _|_ which can be overriden by > 'fail' with a mor

Re: [Haskell] problems with Haskell 98's record system

2006-02-20 Thread Iavor Diatchki
Hello, On 2/19/06, Johannes Waldmann <[EMAIL PROTECTED]> wrote: > > ... unless you export everything, you are forced to list all exports > > explicitly, so there's no way to tell it just the few things you're > > hiding (though that should not be a difficult extension). > > Alternative suggestion:

Re: [Haskell] problems with Haskell 98's record system

2006-02-17 Thread Iavor Diatchki
Hello, Do you mean the record system or the module system? I don't think either is exactly flawed, but for both, people have wanted them to do more (and some have suggested that they should be the same thing :-) The main problem with the record system I have heard about is that people want to be

Re: [Haskell] Re: (small) records proposal for Haskell '06

2006-01-04 Thread Iavor Diatchki
Hello, On 1/4/06, David Roundy <[EMAIL PROTECTED]> wrote: > > What happens to record updates? > > > > setFoo x r = r { foo = x } > > > > Or is the proposal to remove updates as well? > > Ah, good point, I hadn't thought about that. My proposal was to keep > record updates which would indeed mean

[Haskell] Broken monad laws

2005-11-23 Thread Iavor Diatchki
Hello, I just noticed that the GHC/Hugs "standard" libraries have acquired a list monad transformer, which is broken, because it does not satisfy the associativity law when applied to non-commutative monads. I am not referring to some corner-case strictness problem, but rather a fairly well known

Re: [Haskell] Compiling wxHaskell from source?

2005-11-17 Thread Iavor Diatchki
Hello, I also couldn't compile it. I looked in the sources a bit, and at least one of the problems was that that the wxHaskell wrappers used 'char' insted of 'wxChar', which I think causes problems if wxWidgets is compiled with unicode support (as is probably the case with the Debian library). It

Re: [Haskell] Partially applied type class functions

2005-08-05 Thread Iavor Diatchki
Hello, On 8/5/05, Paul Govereau <[EMAIL PROTECTED]> wrote: > > Hello, > > I have encountered a type error that I find quite puzzling. I would > appreciate it if someone could help me understand what is going wrong. > Here is the program: > > > data Expr = Var String | Const Int > > data Constra

Re: [Haskell] Re: ST/STRef vs. IO/IORef

2005-08-03 Thread Iavor Diatchki
Hello, On 8/3/05, Srinivas Nedunuri <[EMAIL PROTECTED]> wrote: > > The most obvious disadvantage is that the IO monad has no equivalent > > of runST. > OK, I'm missing something here. What is the big deal about runST? Can I not > get the IO equivalent by simply running the program at the top leve

Re: [Haskell] MPTCs and type inference

2005-04-25 Thread Iavor Diatchki
Hello, On 4/25/05, Andrew Pimlott <[EMAIL PROTECTED]> wrote: > I appreciated your explanation, but can you also address (to the list) > the last case given by the original poster? > > > On 4/25/05, Andreas Rossberg <[EMAIL PROTECTED]> wrote: > > > in particular, when I compare with the single par

Re: [Haskell] MPTCs and type inference

2005-04-25 Thread Iavor Diatchki
Hello, The type inference for "d1", goes on like this: 1. suppose "x" is of some type "a" 2. now lets infer a type for "p" 3. using the usual rules we infer that "p :: b -> ()", subject to the constraint that "D a b" holds. 4. "p" does not look like a function so the monomorphism restriction applie

Re: [Haskell] Hierarchical module namespace extension not sufficiently flexible

2005-03-06 Thread Iavor Diatchki
Hello, On Sun, 06 Mar 2005 12:21:01 +, Duncan Coutts <[EMAIL PROTECTED]> wrote: > On Sat, 2005-03-05 at 22:15 +0100, Sebastian Sylvan wrote: > > On Sat, 05 Mar 2005 17:03:38 +, Duncan Coutts > module Graphics.UI.Gtk ( > > > qualified module Graphics.UI.Gtk.Button as Button, > > > ... >

Re: [Haskell] monad transformers

2005-01-31 Thread Iavor Diatchki
Hello, (appologies --- as I was writing, my post digressed from your original point, I hope the discussion is still interesting though :-) On Sat, 29 Jan 2005 18:48:00 -0800, John Meacham <[EMAIL PROTECTED]> wrote: > ... > instance (Monad m, Monad (t m), MonadTrans t, MonadStats m) => MonadStats

Re: learning to love laziness

2003-09-24 Thread Iavor Diatchki
hello, Richard Nathan Linger wrote: On Wed, 24 Sep 2003, Norman Ramsey wrote: Consider the following Haskell function: asPair x = (fst x, snd x) This function has type forall a b. (a, b) -> (a, b) and is almost equivalent to the identity function, except it can be used to make programs termina

Re: Beautifying Haskell programs

2003-09-24 Thread Iavor Diatchki
hello, i also like pretty for simple pretty priniting tasks, but i think it is a bit low level. for example, the cominators could be parameterised by a monad, so that one can have different printing styles, and also deal nicely with precedences. one can build that functionality on top of the

Re: Syntax extensions: mdo and do...rec

2003-09-17 Thread Iavor Diatchki
hello, i have no strong feelings about that either way, however since in haskell we do not have "let" vs "let rec" distinctions, perhaps we should not have "do" vs "do rec" distinction. this of course would break programs relying on shadowing (and at least i write quite a few of those, but that is

lexer puzzle

2003-09-12 Thread Iavor Diatchki
hi everyone, what do people think should be the tokens produced by a haskell lexer when applied to the following input: A... bye iavor & thomas h. -- == | Iavor S. Diatchki, Ph.D. student | | Department of Computer Science and Engine

Re: Syntax extensions (was: RE: The Future of Haskell discussion at the Haskell Workshop)

2003-09-11 Thread Iavor Diatchki
hello, it's a pity i don't know how to get my mailer to reply to a few messages at once :-) i also like mark's idea. i know that ghc can alredy achive some of that with the OPTION pragmas, but i think it is nice if we can reuse what is already in the language rather than making programmers le

Re: The Future of Haskell discussion at the Haskell Workshop

2003-09-09 Thread Iavor Diatchki
hello, i think records are very useful, and we don't use them much in haskell, becuase the current record system is not very good. Adrian Hey wrote: IMHO preserving the status quo wrt records should be low priority. It really doesn't bother me much if new (useful) language features break existin

Re: proving the monad laws

2003-09-01 Thread Iavor Diatchki
hi, just a comment that the you can get more modular (and hence simpler) proofs by using monad transformers. than you can break down your proof in a number of steps: 1. prove that the identity monad is a monad 2. prove that the exception transformer: ErrorT x m a = m (Either x a) gives a monad,if

Re: Exhaustive Pattern-Matching

2003-08-27 Thread Iavor Diatchki
hello, Steffen Mazanek wrote: Hello, I have a question about pattern-matching. In the Haskell-report it is not postulated, that pattern matching has to be exhaustive. Would it be possible at all to implement an algorithm, which checks Haskell-style patterns for exhaustiveness? What kinds of co

Re: HI && TypeCast

2003-08-14 Thread Iavor Diatchki
hello, Fredrik Petersson wrote: Hi there! Iam new to the list so feel free to shout at me when i do wrong! :) Software-designer from sweden, likes fast bikes and metal, thats me, and hi to you all! welcome Yeah ok to the problem, i have this stupid code, [c | (c,i) <- l] Where (c,i) are a tuple f

Re: Fudgets with GHC 5.04.3

2003-05-29 Thread Iavor Diatchki
hello, i have made a package file for GHC. this is how you can install fudgets. 1. download it: http://www.cse.ogi.edu/~hallgren/untested/fudgets-030414-ghc-5.04.3-i386-linux-rh9.tar.gz 2. unzip it: tar -C /usr/local -xzvf fudgets-030414-ghc-5.04.3-i386-linux-rh9.tar.gz 3. add it to the ghc packag

Re: Fudgets with GHC 5.04.3

2003-05-29 Thread Iavor Diatchki
hi, it works fine with GHC 5.04.3. in fact we are using it for one of our projects here at OGI. bye iavor Bas van Dijk wrote: Hi, Does anybody have the Fudgets library working with GHC 5.04.3 ? I know the library is tested under GHC 5.02 but I would rather not install two versions of GHC. Ba

Re: Missing class functions

2003-05-27 Thread Iavor Diatchki
hello, yep this is annoying. there is a flag in GHC to warn you about such missing methods: -fwarn-missing-methods another thihng to watch out for are classes where there are mutually recursive defaults (like the Eq class). forgetting to define a method there will still loop, but won't be caug

Re: more detailed explanation about forall in Haskell

2000-05-19 Thread Iavor Diatchki
hello, i have been following the evolution of haskell for about 2 years now in my spare time, but haven't had time to really get into haskell programming. so i am not an expert or anything. i do not see the need for the "forall" quantifier to be written explicitly however, and i quite like the wa