Re: Unicode windows console output.

2010-11-03 Thread Krasimir Angelov
can make a small C test case and send it to the Microsoft people. Some[1] are reporting success with Unicode console output. David [1] http://www.codeproject.com/KB/cpp/unicode_console_output.aspx On Tue, Nov 2, 2010 at 3:49 AM, Krasimir Angelov kr.ange...@gmail.com wrote

Re: Unicode windows console output.

2010-11-02 Thread Krasimir Angelov
This is evidence for the broken Unicode support in the Windows terminal and not a problem with GHC. I experienced the same many times. 2010/11/2 David Sankel cam...@gmail.com: On Mon, Nov 1, 2010 at 10:20 PM, David Sankel cam...@gmail.com wrote: Hello all, I'm attempting to output some 

Re: Data.List permutations

2009-08-04 Thread Krasimir Angelov
Your function is not equivalent: perm _|_ = _|_ permutations _|_ = _|_ : _|_ On 8/4/09, Slavomir Kaslev slavomir.kas...@gmail.com wrote: A friend mine, new to functional programming, was entertaining himself by writing different combinatorial algorithms in Haskell. He asked me for some help

Re: --out-implib when linking shared libraries

2009-05-16 Thread Krasimir Angelov
I remember that the .dll.a libraries that GCC produces are not always compatible with MSVC. Sometimes it works if you rename them to .lib but sometimes it doesn't. It is much more realiable to create .lib from .def file via some of the MS tools. If GCC can link dynamic libraries without using the

Re: Re[2]: Compiler optimizations questions for ghc 6.10...

2009-02-21 Thread Krasimir Angelov
Felgenhauer bertram.felgenha...@googlemail.com wrote: Krasimir Angelov wrote: Well I actually did, almost. I added this function: quotX :: Int - Int - Int a `quotX` b | b == 0 = error divZeroError | b == (-1) a == minBound = error overflowError | otherwise

Re: Compiler optimizations questions for ghc 6.10...

2009-02-20 Thread Krasimir Angelov
...@gmail.com wrote: On February 19, 2009 18:20:33 Krasimir Angelov wrote: Oh. I looked at the primops.txt.pp for something suspicious but I didn't checked the actual implementation of quot. I thought that quot calls quotInt# directly. When I use quotInt in the code I can get the real idiv assembly

Re: Re[2]: Compiler optimizations questions for ghc 6.10...

2009-02-20 Thread Krasimir Angelov
Well I actually did, almost. I added this function: quotX :: Int - Int - Int a `quotX` b | b == 0 = error divZeroError | b == (-1) a == minBound = error overflowError | otherwise = a `quotInt` b It does the right thing. However to be sure that this

Re: Compiler optimizations questions for ghc 6.10...

2009-02-19 Thread Krasimir Angelov
I was surprised to see this case expression: case GHC.Prim.-# 9223372036854775807 ipv_s1bD of wild2_a1xi [ALWAYS Just L] { What is the purpose to compare the value with maxBound before the division? The case expression doesn't disappear even if I use quot instead of div.

Re: Compiler optimizations questions for ghc 6.10...

2009-02-19 Thread Krasimir Angelov
any exception actually. It just evaluates the same expression but with the constant maxBound. On Thu, Feb 19, 2009 at 11:19 PM, Max Bolingbroke batterseapo...@hotmail.com wrote: 2009/2/19 Krasimir Angelov kr.ange...@gmail.com: I was surprised to see this case expression: case GHC.Prim

[Haskell] Perhaps a bug in GHC 6.10

2008-12-03 Thread Krasimir Angelov
Hi, One of my students wrote code like this: prop_blank s (i,j) li = if i==li then do if something then True else False else prop_blank (...) (i,j) (li+1) This code is not accepted from GHC 6.8.3 because Bool is not a monad. In particular the error message is:

Re: [Haskell-cafe] What *not* to use Haskell for

2008-11-11 Thread Krasimir Angelov
You can hire one Haskell programmer instead of 1,2,3... programmers in your favorite imperative language. On Tue, Nov 11, 2008 at 12:32 PM, Arnar Birgisson [EMAIL PROTECTED] wrote: Hi all, On Tue, Nov 11, 2008 at 11:38, Dave Tapley [EMAIL PROTECTED] wrote: Usually I'll avoid then question

Re: What causes loop?

2008-11-08 Thread Krasimir Angelov
Hi Creighton, This means that the interpreter have detected that your program run into infinite loop. There are many possibilities but one of them (the most often for me) is to have something like: let x = f x because of the lazy evaluation this is possible but leads to infinite loop. It is

Re: [Haskell-cafe] Efficient parallel regular expressions

2008-11-05 Thread Krasimir Angelov
Hi Martijn, If you are brave to start implementing DFA with all required optimisations then you might want to look at: http://www.ontotext.com/gate/japec.html This is a compiler for language called JAPE. In the language you define a set of rules where the right hand side is a regular expression

Re: [Haskell-cafe] two problems with Data.Binary and Data.ByteString

2008-11-05 Thread Krasimir Angelov
On Wed, Aug 13, 2008 at 1:18 AM, Don Stewart [EMAIL PROTECTED] wrote: instance Binary a = Binary [a] where put l = put (length l) mapM_ put l get= do n - get :: Get Int replicateM n get Of course I changed this as well. Now it is: instance (Ord k,

Re: [Haskell-cafe] two problems with Data.Binary and Data.ByteString

2008-11-05 Thread Krasimir Angelov
I had the same problem (stack overflow). The solution was to change the = operator in the Get monad. Currently it is: m = k = Get (\s - let (a, s') = unGet m s in unGet (k a) s') but I changed it to: m = k = Get (\s - case unGet m s of

Re: [Haskell] Current XML libraries status

2008-10-25 Thread Krasimir Angelov
- sometimes i think, i should write a paper about it. but then... naah, i'm like haskell: non-strict. Am Donnerstag, 23. Oktober 2008 schrieb Krasimir Angelov: Hi, Does some one have made performance tests on the different XML libraries for Haskell? I have a 20MB xml file that I want

[Haskell] Re: Current XML libraries status

2008-10-24 Thread Krasimir Angelov
, Krasimir On Thu, Oct 23, 2008 at 10:26 PM, Krasimir Angelov [EMAIL PROTECTED]wrote: Hi, Does some one have made performance tests on the different XML libraries for Haskell? I have a 20MB xml file that I want to read. I remember from my earlier experiments (years ago) that all libraries

[Haskell] Current XML libraries status

2008-10-23 Thread Krasimir Angelov
Hi, Does some one have made performance tests on the different XML libraries for Haskell? I have a 20MB xml file that I want to read. I remember from my earlier experiments (years ago) that all libraries were too slow and were consuming too much memory. I hoped that this situation had changed but

Re: [Haskell-cafe] Darcs / Git

2008-10-07 Thread Krasimir Angelov
I use darcs on Windows every day and it works well. The only problem is that it is not very usable if you access your repository via SSH and the authentication is via password. On Mon, Oct 6, 2008 at 9:11 PM, Dominic Steinitz [EMAIL PROTECTED] wrote: Not really a Haskell question but I'm not

Re: [Haskell-cafe] Haskell versus F#, OCaml, et. al. ...

2008-09-30 Thread Krasimir Angelov
On Tue, Sep 30, 2008 at 8:46 AM, Don Stewart [EMAIL PROTECTED] wrote: There's almost 800 Haskell libraries on hackage.haskell.org (millions of lines of code). On average, 2 new libraries are released each day (though 12 new libs were released in the last 24 hours). That's 700 new libraries a

Re: [Haskell-cafe] Unboxing VT_VARIANT in hscom

2008-08-20 Thread Krasimir Angelov
suggestions? Thanks, Praki On Tue, Aug 19, 2008 at 1:49 AM, Krasimir Angelov [EMAIL PROTECTED] wrote: This looks like a GHC bug to me. I am pretty sure that this worked before. Variant is defined like this: data Variant = forall a . Variant (VarType a) a data VarType a where

[Haskell-cafe] Re: [Haskell] Compiler Construction course using Haskell?

2008-08-20 Thread Krasimir Angelov
Hi Johannes, There is a similar course in Chalmers. The home page is here: http://www.cs.chalmers.se/Cs/Grundutb/Kurser/progs/current/ There students were required to implement full parser, partial typechecker and partial interpreter for C++ in either C++, Java or Haskell. We used BNFC for the

Re: [Haskell-cafe] Unboxing VT_VARIANT in hscom

2008-08-19 Thread Krasimir Angelov
This looks like a GHC bug to me. I am pretty sure that this worked before. Variant is defined like this: data Variant = forall a . Variant (VarType a) a data VarType a where VT_DISPATCH :: VarType (IDispatch ()) From this it clear that val is of type (IDispatch ()) because the

Re: [Haskell-cafe] ActiveX and COM

2008-08-05 Thread Krasimir Angelov
Hi Günther, You can also consider the hscom library: http://darcs.haskell.org/packages/hscom/ There is a simple demo that automates MS Agent. The library is not completed but if you are interested only in controlling Excel via automation it should provide what you need. I started hscom because

Re: [Haskell-cafe] Scripting COM Components from Haskell - GreenCard on Hackage

2008-08-05 Thread Krasimir Angelov
No! Greencard is another story. The paper describes HDirect. On Tue, Aug 5, 2008 at 3:02 PM, GüŸnther Schmidt [EMAIL PROTECTED] wrote: Hi, does anybody know if the Greencard package / lib is the same software that is mentioned in the paper Scripting COM Components from Haskell?

Re: [Haskell-cafe] Implementing ParseChart with Data.Map

2008-06-03 Thread Krasimir Angelov
give much better performance - 5734 msec instead of 5828 msec. Fortunately I found that there is a way to avoid to use Map at all in one common case. This gave me time about 5024 msec. Regards, Krasimir On 6/3/08, Yitzchak Gale [EMAIL PROTECTED] wrote: Krasimir Angelov wrote: but notice

[Haskell-cafe] Implementing ParseChart with Data.Map

2008-06-02 Thread Krasimir Angelov
Hi, I have to write ParseChart implementation with Data.Map/Set. The chart is type like this: type Chart k v = Map k (Set v) now I need operation like: insert :: k - v - Chart k v - Maybe (Chart k v) where the result is (Just _) if the (k,v) is actually added to the chart or Nothing if it was

Re: [Haskell-cafe] Implementing ParseChart with Data.Map

2008-06-02 Thread Krasimir Angelov
Not completely! This is a possible implementation: case insertLookupWithKey (\_ - Set.union) k (Set.singleton v) chart of (Nothing, chart) - Just chart (Just set, chart) | Set.member v set - Nothing | otherwise - Just chart but notice that the set is

Re: [Haskell-cafe] Data.Tree.Zipper in the standard libraries

2008-05-31 Thread Krasimir Angelov
Hi again, I was silent for some time but in this time I created QuickCheck tests for Data.Tree.Zipper which achieve 100% coverage with HPC. I also created a ticket for it: Ticket #2324 http://hackage.haskell.org/trac/ghc/ticket/2324 The attached file is the current implementation and it

Re: [Haskell-cafe] Data.Tree.Zipper in the standard libraries

2008-05-23 Thread Krasimir Angelov
a - TreeLoc a'. Then they compose nicely with (.), having id as identity. * Simplify the type of getLabel to just 'TreeLoc a - a'. Now no more State. Cheers, - Conal On Thu, May 22, 2008 at 12:52 PM, Krasimir Angelov [EMAIL PROTECTED] wrote: Hello Guys, We have Data.Tree in the standard

[Haskell-cafe] Data.Tree.Zipper in the standard libraries

2008-05-22 Thread Krasimir Angelov
Hello Guys, We have Data.Tree in the standard libraries for a long time but for some reason we still don't have standard implementation for Zipper. I wrote recently one implementation for Yi but there are many other versions hanging around. At least I know for some. I propose to add one in the

Re: [Haskell-cafe] zipper for rose trees? (Data.Tree)

2008-04-23 Thread Krasimir Angelov
Hi Graham, There is one implementation here: http://code.haskell.org/yi/Data/Tree/ I wrote it for Yi but it is quite general. It is a pity that we don't have it in the standard libraries. It is not completely tested but it seems to work for me. Regards, Krasimir 2008/4/23 Graham Fawcett

Re: Some problems writing a threaded program

2008-02-13 Thread Krasimir Angelov
2008/2/11 John Vogel [EMAIL PROTECTED]: The only issue now is that terminateProcess doesn't always terminate netstat.exe in the cmd.exe so I don't get an exit condition. A simple way is to use runInteractiveProcess instead of runInteractiveCommand. The former doesn't start a new cmd.exe but

Re: upgrading visual studio integration to use 6.8.2....

2007-12-14 Thread Krasimir Angelov
On Dec 14, 2007 4:46 PM, Simon Marlow [EMAIL PROTECTED] wrote: BTW, I was recently made aware of Visual Studio Shell: http://msdn2.microsoft.com/en-us/vsx2008/products/bb933751.aspx This is a freely redistributable Visual Studio installer that includes no language support, but allows

Re: [Haskell-cafe] Tools for Haskell and COM

2007-06-27 Thread Krasimir Angelov
There's a bit of a chicken-and-egg problem here; the COM tools are not well maintained, so that discourages use, which in turn makes it less rewarding to work on them. What I don't know is the level of suppressed demand: if there were good tools, would lots of people start using them? I think

Re: [Haskell-cafe] Re: GHC throws IOError on Win32 when there is no console

2007-02-13 Thread Krasimir Angelov
On 2/13/07, Simon Marlow [EMAIL PROTECTED] wrote: Sounds like a good idea. You need to look at rts/RtsMessages.c, in particular rtsErrorMsgFn(), which currently has cases for GUI and non-GUI. I guess it really should have 3 cases: GUI, console, and non-GUI. The trick here is how to find

Re: No intellisense in Visual Haskell

2007-01-16 Thread Krasimir Angelov
-Original Message- From: Krasimir Angelov [mailto:[EMAIL PROTECTED] Sent: 15 January 2007 16:48 To: Sittampalam, Ganesh Cc: Pepe Iborra; GHC users Subject: Re: No intellisense in Visual Haskell It could help if you can provide an example that breaks the intellisense of Visual Haskell. It doesn't

Re: No intellisense in Visual Haskell

2007-01-15 Thread Krasimir Angelov
It could help if you can provide an example that breaks the intellisense of Visual Haskell. It doesn't depend on the project size but perhaps you have found a bug in it. Cheers, Krasimir On 1/15/07, Sittampalam, Ganesh [EMAIL PROTECTED] wrote: Sorry, I forgot to make clear that the project

[Haskell] ANNOUNCE hscom library

2007-01-15 Thread Krasimir Angelov
Hello all, I have created darcs repository for my hscom library at: http://darcs.haskell.org/packages/hscom/ This is a FFI library for Microsoft COM. It is far from complete and it doesn't have automatic IDL-Haskell translator but if you have ever thought to start writing you own COM library

Re: HDirect and GHC-6.6

2007-01-12 Thread Krasimir Angelov
Some time ago I even started to design my own comlib. It is quite different from HDirect's comlib but is more closer in spirit to Haskell's FFI lib. It isn't completed yet but if someone is interested in I would upload it in darcs next week. It is living in Foreign.COM namespace. Cheers,

Re: [Haskell-cafe] How to serialize thunks?

2006-12-21 Thread Krasimir Angelov
Hi Joachim, All those libraries really force the data because they all are written in Haskell. If you want to serialize thunks then you will need some support from RTS. This is something that is implemented in Clean but this just uncovers a lot of other problems: The serialization of thunk

Re: [Haskell-cafe] Re: How to serialize thunks?

2006-12-21 Thread Krasimir Angelov
On 12/21/06, Joachim Durchholz [EMAIL PROTECTED] wrote: Krasimir Angelov schrieb: All those libraries really force the data because they all are written in Haskell. If you want to serialize thunks then you will need some support from RTS. Good to hear that my conjectures aren't too far from

[Haskell] Re: ANNOUNCE: Visual Haskell 0.2 final

2006-12-18 Thread Krasimir Angelov
Hello Haskellers, GHC Trac has a Visual Haskell category. Please report all bugs and feature requests using it. Cheers, Krasimir On 12/8/06, Krasimir Angelov [EMAIL PROTECTED] wrote: Hello Haskellers, The final version of Visual Haskell 0.2 is ready: http://www.haskell.org/visualhaskell

Re: [Haskell-cafe] Re: Haskell and .NET

2006-12-13 Thread Krasimir Angelov
The problem with Haskell for .NET is that the produced executables are usually very slow. Good optimizing compiler like GHC has better chance to produce code with reasonable performance. The major problem with YHC is that it still doesn't have strictness analyzer. The consequence is that the

Re: [Haskell-cafe] Re: Haskell and .NET

2006-12-13 Thread Krasimir Angelov
On 12/13/06, Neil Mitchell [EMAIL PROTECTED] wrote: Hi Krasimir, to produce code with reasonable performance. The major problem with YHC is that it still doesn't have strictness analyzer. It does, or rather Yhc.Core does (see Yhc.Core.Strictness -

Re: [Haskell] ANNOUNCE: Visual Haskell 0.2 final

2006-12-11 Thread Krasimir Angelov
distributed with Visual Studio. Look for a message box with title vs_haskell.dll and see the message inside it. Krasimir On 12/11/06, Bayley, Alistair [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Krasimir Angelov The final version of Visual Haskell 0.2

Re: [Haskell] ANNOUNCE: Visual Haskell 0.2 final

2006-12-11 Thread Krasimir Angelov
No. It should be toplevel window. Try Spy\Processes from the menu to see only these windows that are part of devenv. Krasimir On 12/11/06, Bayley, Alistair [EMAIL PROTECTED] wrote: From: Krasimir Angelov [mailto:[EMAIL PROTECTED] This usually happens when there is an uncaught Haskell

[Haskell] ANNOUNCE: Visual Haskell 0.2 final

2006-12-08 Thread Krasimir Angelov
Hello Haskellers, The final version of Visual Haskell 0.2 is ready: http://www.haskell.org/visualhaskell This is the first version that is: - available for both VStudio 2003 and VStudio 2005 - distributed with a stable GHC version (6.6) - the plugin itself is much more stable than its

[Haskell-cafe] Re: [Haskell] ANNOUNCE: Visual Haskell 0.2 final

2006-12-08 Thread Krasimir Angelov
It is already bundled with slightly newer version of GHC-6.6. There was a bug that had to be fixed in order to have working Visual Haskell. Visual Haskell is dependent of GHC API and you can't simply use it with different GHC version. Cheers, Krasimir On 12/8/06, Bulat Ziganshin [EMAIL

[Haskell-cafe] Re: Re[2]: [Haskell] ANNOUNCE: Visual Haskell 0.2 final

2006-12-08 Thread Krasimir Angelov
You can replace just libHSrts.a in your Visual Haskell directory and it should work. I will release a new VSHaskell after GHC-6.6.1 release. If the .hi format is still the same in the last GHC-6.6 revision then you should safely replace everything. Cheers, Krasimir On 12/8/06, Bulat Ziganshin

Re: [Haskell] cabal + haddock on Windows default paths working?

2006-12-05 Thread Krasimir Angelov
It seems like Cabal is looking for directory html i.e. with trailing space. This sounds like a bug. Cheers, Krasimir On 12/5/06, Conal Elliott [EMAIL PROTECTED] wrote: When I configure libraries (monadLib, arrows) with default locations and then cabal-haddock my own library, I get this sort

Re: [Haskell] Using putStrLn/printf from DLL in GUI application

2006-12-03 Thread Krasimir Angelov
Panne [EMAIL PROTECTED] wrote: Am Freitag, 1. Dezember 2006 21:37 schrieb Krasimir Angelov: [...] do allocConsole . . putStrLn Hello, world! . . freeConsole [...] Having explicit alloc/free pairs can lead to resource leaks in the presence

Re: [Haskell-cafe] Re: [Haskell] ANNOUNCE: Visual Haskell prerelease 0.2

2006-12-01 Thread Krasimir Angelov
with the updated dll. Cheers, Krasimir On 12/1/06, shelarcy [EMAIL PROTECTED] wrote: Hi Krasimir, On Fri, 01 Dec 2006 16:56:02 +0900, Krasimir Angelov [EMAIL PROTECTED] wrote: http://www.cygwin.com/ml/cygwin/1998-04/msg00133.html I wonder whether this may cause the problem. I have uploaded a new

Re: [Haskell-cafe] ANNOUNCE: Visual Haskell prerelease0.2

2006-12-01 Thread Krasimir Angelov
I will build these libraries for the final installer. On 12/1/06, shelarcy [EMAIL PROTECTED] wrote: Hi Alistair, On Fri, 01 Dec 2006 18:13:45 +0900, Bayley, Alistair [EMAIL PROTECTED] wrote: It certainly is. Is it possible to configure VisualHaskell so that it uses the existing ghc-6.6

Re: [Haskell-cafe] Re: [Haskell] ANNOUNCE: Visual Haskell prerelease 0.2

2006-12-01 Thread Krasimir Angelov
The zip file is updated with .dll that is with stripped debug symbols but with --optdll-s as it is recommended. Could some one try whether it works? It is about two times smaller than the non stripped version. http://www.haskell.org/visualhaskell/vs_haskell.zip Cheers, Krasimir

Re: [Haskell-cafe] Re: [Haskell] ANNOUNCE: Visual Haskell prerelease 0.2

2006-12-01 Thread Krasimir Angelov
Sorry. I was sleeping and I uploaded it to darcs.haskell.org instead to haskell.org. Try it now. Cheers, Krasimir On 12/2/06, shelarcy [EMAIL PROTECTED] wrote: Hi Krasimir, On Sat, 02 Dec 2006 02:14:26 +0900, Krasimir Angelov [EMAIL PROTECTED] wrote: The zip file is updated with .dll

Re: [Haskell] ANNOUNCE: Visual Haskell prerelease 0.2

2006-11-30 Thread Krasimir Angelov
, Krasimir Angelov [EMAIL PROTECTED] wrote: As far as I know there is an academic license that allows you to use Visual Studio free of charge for non commercial purposes. At least I heard that students in some Bulgarian universities are allowed to use it. I don't know the details because I have

Re: [Haskell] Re: ANNOUNCE: Visual Haskell prerelease 0.2

2006-11-30 Thread Krasimir Angelov
Yes. All patches are pushed in. It is much easier to build it now but it is still tricky especially if you have to build it manually. It is much easier if you use VSHaskell to build VSHaskell ;-). Cheers, Krasimir On 11/30/06, Simon Marlow [EMAIL PROTECTED] wrote: Lennart Augustsson wrote:

Re: [Haskell] ANNOUNCE: Visual Haskell prerelease 0.2

2006-11-30 Thread Krasimir Angelov
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Krasimir Angelov Sent: den 28 november 2006 08:30 To: haskell Subject: [Haskell] ANNOUNCE: Visual Haskell prerelease 0.2 Hello Haskellers, I am happy to announce that there is a prerelease version of Visual

Re: [Haskell-cafe] Re: [Haskell] ANNOUNCE: Visual Haskell prerelease 0.2

2006-11-30 Thread Krasimir Angelov
VSHaskell isn't interfacing with .NET but is a COM server written in Haskell. The VStudio IDE is actually implemented in C but is using COM as an interface to the various plugins. That way you can implement the plugin in C++/.NET/Haskell or what ever you want. For Eclipse you need a bridge

Re: [Haskell-cafe] Re: [Haskell] ANNOUNCE: Visual Haskell prerelease0.2

2006-11-30 Thread Krasimir Angelov
Hi Alistair, Visual Haskell is packaged with just the core libraries. Control.Monad.* modules are part of mtl and Test.HUnit is part of HUnit which aren't core libraries and aren't installed. It was long time ago when I was using the official Windows installer for last time. Is it still packaged

[Haskell-cafe] Re: [Haskell] ANNOUNCE: Visual Haskell prerelease 0.2

2006-11-30 Thread Krasimir Angelov
prerelease 0.2. Near the end of install process, Microsoft Development Environment cause error. On Thu, 30 Nov 2006 17:03:22 +0900, Krasimir Angelov [EMAIL PROTECTED] wrote: Could you tell me what error message you see during the installation? If it is in Japan then translate it in English

[Haskell-cafe] Re: [Haskell] ANNOUNCE: Visual Haskell prerelease 0.2

2006-11-30 Thread Krasimir Angelov
You can try to setup it manually using the following commands: $ regsvr32 /i:8.0 /n vs_haskell.dll $ regsvr32 /i:8.0 /n vs_haskell_babel.dll $ regsvr32 /i:8.0 /n vs_haskell_dlg.dll $ devenv.exe /Setup On 11/30/06, Krasimir Angelov [EMAIL PROTECTED] wrote: Hi Shelarcy, Could you check whether

Re: [Haskell-cafe] Re: [Haskell] ANNOUNCE: Visual Haskell prerelease 0.2

2006-11-30 Thread Krasimir Angelov
Hi Shelarcy, On 12/1/06, shelarcy [EMAIL PROTECTED] wrote: Why you always show 8.0 instead of 7.1? Sorry, I thought that you are using VStudio 2005. On Fri, 01 Dec 2006 03:48:49 +0900, Justin Bailey [EMAIL PROTECTED] wrote: I am having similar problems with the Visual Haskell install, and

Re: [Haskell-cafe] [Haskell] Defining Cg, HLSL style vectors in Haskell

2006-11-29 Thread Krasimir Angelov
Hi Slavomir, On 11/28/06, Slavomir Kaslev [EMAIL PROTECTED] wrote: instance Num Float3 where . signum a | a == Float3 0 0 0 = 0 | otherwise = 1 signum has a natural generalization for vectors. signum v = vector with the same direction as v but with |v| = 1 where

Re: [Haskell-cafe] [Haskell] Defining Cg, HLSL style vectors in Haskell

2006-11-29 Thread Krasimir Angelov
It is possible of course but your definition doesn't correspond to any operation in the usual vector algebra. By the way how do you define (*)? Isn't it 3D vector multiplication? Krasimir On 11/29/06, Slavomir Kaslev [EMAIL PROTECTED] wrote: You mean signum = normalize? What do you think of my

Re: [Haskell] ANNOUNCE: Visual Haskell prerelease 0.2

2006-11-28 Thread Krasimir Angelov
Hi Johannes, There is a free version of Visual Studio called Visual C++/C# Express but it isn't extensible and Visual Haskell can't be integrated with it. As far as I know there is an academic license that allows you to use Visual Studio free of charge for non commercial purposes. At least I

Re: [Haskell] ANNOUNCE: Visual Haskell prerelease 0.2

2006-11-28 Thread Krasimir Angelov
On 11/28/06, Johannes Waldmann [EMAIL PROTECTED] wrote: seriously, how hard would it be to adapt VH to Eclipse? the interfaces (for syntax highlighting, typechecking etc.) should be similar - in theory. Ah, and about Eclipse. Visual Studio and Eclipse are very different platforms and you have

[Haskell] ANNOUNCE: Visual Haskell prerelease 0.2

2006-11-27 Thread Krasimir Angelov
Hello Haskellers, I am happy to announce that there is a prerelease version of Visual Haskell on: http://www.haskell.org/visualhaskell This is the first version that is: - available for both VStudio 2003 and VStudio 2005 - distributed with a stable GHC version (6.6) This is still

Template Haskell quotion for []

2006-11-07 Thread Krasimir Angelov
Hello, I had this example that was working with earliest versions of GHC but it doesn't work with GHC-6.6. $(deriveReflectable ''[]) Above this isn't a double quote but two single quotes. It may not be clear with some fonts. Is this a bug or just there is a change in the syntax? The error that

Re: Visual Haskell 2005?

2006-10-15 Thread Krasimir Angelov
Hi Mike, The new version of Visual Haskell is on the way. It will be packaged with ghc-6.6 and will work with both VStudio 2005 and 2003. Cheers, Krasimir On 10/15/06, Michael Sparks [EMAIL PROTECTED] wrote: Are there any plans to make a version of Visual Haskell that works with Visual

Re: [Haskell-cafe] windows file locking

2006-10-11 Thread Krasimir Angelov
Hi Stefan, Haskell I/O systems implements single writer-multiple readers file locking. See http://www.haskell.org/ghc/docs/latest/html/libraries/base/System-IO.html#8 Cheers, Krasimir On 10/11/06, Stefan Aeschbacher [EMAIL PROTECTED] wrote: Hi I need to open a file and keep it open for

Re: Bad interface file error with GHC RC2

2006-10-05 Thread Krasimir Angelov
from its own directory instead of those in the path. Cheers, Krasimir On 10/5/06, Simon Marlow [EMAIL PROTECTED] wrote: Krasimir Angelov wrote: Building with -package-name comlib-0.1 helps. I saw that Cabal from HEAD is passing the full package id to GHC but the version compiled in ghc

Re: Bad interface file error with GHC RC2

2006-10-04 Thread Krasimir Angelov
On 10/4/06, Ian Lynagh [EMAIL PROTECTED] wrote: Did it work with earlier RCs? It was working with a version slightly older than RC1. Definitely with a version without the advanced packages support. Does comlib get wired into the compiler at all? I had a similar problem with base, where the

Re: Bad interface file error with GHC RC2

2006-10-04 Thread Krasimir Angelov
. Cheers, Krasimir On 10/4/06, Krasimir Angelov [EMAIL PROTECTED] wrote: On 10/4/06, Ian Lynagh [EMAIL PROTECTED] wrote: Did it work with earlier RCs? It was working with a version slightly older than RC1. Definitely with a version without the advanced packages support. Does comlib get wired

Bad interface file error with GHC RC2

2006-10-03 Thread Krasimir Angelov
When I tried to build VSHaskell with the RC2 version of GHC I got the following error: src\lib\Registry.hsc:30:0: Bad interface file: C:\Program Files\Haskell\comlib-0.1\ghc-6.5.20061001/Com Dll.hi Something is amiss; requested module comlib-0.1:ComDll differs from nam e found in the

Re: [Haskell-cafe] How can I redirect stdout?

2006-10-02 Thread Krasimir Angelov
Hi Matthew, On Windows stdout/stderr/stdin exists only when your application is using the Console OS subsystem. All GUI applications doesn't have console window and they don't have stdout/stderr/stdin. When you are building DLLs then the subsystem is determined from the type of the application

Re: [Haskell-cafe] Greetings...

2006-10-01 Thread Krasimir Angelov
On 10/1/06, Seth Gordon [EMAIL PROTECTED] wrote: I'm planning to use HSQL, since it's in Debian stable and the API resembles what I'm already familiar with. Database access is slower than file access (which is one reason I want to move as much logic as I can out of SQL), so if the speed of

Re: [Haskell-cafe] Re: Greetings

2006-10-01 Thread Krasimir Angelov
On 10/1/06, Seth Gordon [EMAIL PROTECTED] wrote: Paul Johnson wrote: I've done some stuff with maybe 50k rows at a time. A few bits and pieces: 1: I've used HSQL (http://sourceforge.net/project/showfiles.php?group_id=65248) to talk to ODBC databases. Works fine, but possibly a bit slowly.

Re: Packages in GHC 6.6

2006-08-25 Thread Krasimir Angelov
Currently the tool is general enough to be used with Hugs or any other project. You just need to have a prepared (template) MSI database and the tool will add your files to it. What I tend to add is a special mode where the tool will read your .cabal file and will automatically detect which files

Re: Re[2]: Packages in GHC 6.6

2006-08-25 Thread Krasimir Angelov
The usage of something else than cabarc isn't supported directly and will require extra work. Is the lzma algorithm better than bz2? If I have to use something better than cabarc I would prefer more popular compression algorithm. For Visual Haskell the Nullsoft installer isn't an option because

Re: Packages in GHC 6.6

2006-08-24 Thread Krasimir Angelov
I wrote simple tool that I am using to build MSI installer for Visual Haskell. It will not be so hard to extend it to support Cabal. After that it will be easy to prepare an installer for GHC with optional libraries. Don't expect it to be ready for 6.6 release! Cheers, Krasimir On 8/22/06,

Re: [Haskell-cafe] Re: ANN: System.FilePath 0.9

2006-07-26 Thread Krasimir Angelov
On 7/26/06, Neil Mitchell [EMAIL PROTECTED] wrote: The main purpose of canoncialPath is to fix the case on Windows, so c:\my documents\file.doc becomes C:\My Documents\file.doc if that is the case correct version of the file. I think this function will not actually change the file with relation

[Haskell] Visual Haskell for Visual Studio 2005

2006-07-18 Thread Krasimir Angelov
Hello Guys, In the past year I had a lot of requests for Visual Haskell for Visual Studio 2005. Unfortunately the Visual Haskell code was broken after the latest GHC changes. These days I had enough time to fix it and now it is working well with VStudio 2003. There are very few changes that are

[Haskell] Re: [Haskell-cafe] The History of Haskell

2006-07-15 Thread Krasimir Angelov
It was very interesting reading. Thanks! The slightly anecdotal style of writing is making it even pleasant to read. On 7/14/06, Simon Peyton-Jones [EMAIL PROTECTED] wrote: Friends, Phil Wadler, John Hughes, Paul Hudak and I have been writing a paper about the The History of Haskell

Re: [Haskell-cafe] Windows PowerShell Monad

2006-07-15 Thread Krasimir Angelov
Mostly coincidence. It isn't a good choice for name, I think but the same is true for .NET. Each time when I am googling for .NET I receive lots of irrelevant results. The same will happen with Monad now. On 7/14/06, Chad Scherrer [EMAIL PROTECTED] wrote: Yep, that's its codename. Now, I'm not

Re: [Haskell-cafe] The History of Haskell

2006-07-15 Thread Krasimir Angelov
It was very interesting reading. Thanks! The slightly anecdotal style of writing is making it even pleasant to read. On 7/14/06, Simon Peyton-Jones [EMAIL PROTECTED] wrote: Friends, Phil Wadler, John Hughes, Paul Hudak and I have been writing a paper about the The History of Haskell

Re: [Haskell] system command

2006-07-04 Thread Krasimir Angelov
System.Cmd.rawSystem provides more portable interface than System.Cmd.system. The behaviour of System.Cmd.system depends on the installed system shell. rawSystem directly creates a new process without interaction with the shell. System.Process module provides even more advanced API. Cheers,

Re: [Haskell] Re: ANNOUNCE: HNOP 0.1

2006-06-30 Thread Krasimir Angelov
There was lots of suggestions for the future development of HNOP. Is it too late to propose Google SoC project for it? At least it will be a good candidate for the next summer. Cheers, Krasimir 2006/6/30, Greg Fitzgerald [EMAIL PROTECTED]: I once worked for a company at which HNOP could be

Re: [Haskell-cafe] Haskell I/O inside: down the rabbit's hole

2006-06-30 Thread Krasimir Angelov
In the last section you said that IO has the same definition in GHC and Hugs. As far as I can remember in Hugs IO is defined as: newtype IO a = IO ((a - IOResult) - (IOError - IOResult) - IOResult) Of course this definition is builtin and cann't be seen in the Haskell source code. Cheers,

Re: [Haskell] Haskell as a disruptive technology?

2006-03-27 Thread Krasimir Angelov
As an author of HSQL and Visual Haskell I do agree that there is still a lot to be done in order to make Haskell as popular as C++/Java in the industry. We need strong support for GUI, Database, XML and many other libraries that the other languages already have. The existing development

Re: [Haskell] Re: Haskell as a disruptive technology?

2006-03-27 Thread Krasimir Angelov
Visual Haskell is now with BSD license and it is open sourced. See http://darcs.haskell.org/vshaskell/ Cheers, Krasimir 2006/3/28, Ashley Yakeley [EMAIL PROTECTED]: Paul Johnson wrote: I've never used Visual Haskell, but from the web page two things stand out: 1: Its version 0.0.

Re: How to access hs_free_fun_ptr from a Visual Studio DLL

2006-03-26 Thread Krasimir Angelov
Hi Brian, The problem is that hs_free_fun_ptr is defined in a static library (the Haskell RTS) while you have declared it with __declspec(dllimport). In this case the compiler is tring tp optimize the call and it is using __imp__hs_free_fun_ptr instead of hs_free_fun_ptr. You have to remove the

Re: Linking with C++ produced by Visual Studio .NET on Windows XP?

2006-02-03 Thread Krasimir Angelov
I think that the C backend is heavily dependent on various GCC pragmas but it should be relatively easy to do assembly backend that produces MASM code. Cheers, Krasimir 2006/2/3, Geoffrey Alan Washburn [EMAIL PROTECTED]: Cyril Schmidt wrote: I added this to the FAQ list; please feel free

[Haskell] System.FilePath survey

2006-02-03 Thread Krasimir Angelov
Hello Haskellers, There was a long discussion in October 2004, about the a FilePath module which is currently used in Cabal. There was an idea to move it to the standard libraries but since there were a lot of objections it was removed.

Re: [Haskell] System.FilePath survey

2006-02-03 Thread Krasimir Angelov
[move to [EMAIL PROTECTED] Yes. I agree here. There should be two modules say: System.FilePath.Posix System.FilePath.Windows. There should be a third module System.FilePath that have to use the native path. It should switch between the Posix and Windows implementations either at runtime (Hugs,

Re: [Haskell-cafe] Haskell and JVM

2006-02-02 Thread Krasimir Angelov
Questions about Haskell for JVM or .NET was asked quite often and it is really interesting question. Since the JVM and .NET machines have a lot of common if there was a compiler for one of them then it can retargeted to the other quite easily. The major problem with such compilers is the

GHC.Unicode

2006-01-17 Thread Krasimir Angelov
Hello Guys, I saw that GHC already has complete support for Unicode character classification. I tend to use it but I saw that currently GHC.Unicode exports only few of all classification routines. Is it intentional? Cheers, Krasimir ___

Re: GHC.Unicode

2006-01-17 Thread Krasimir Angelov
The problem is that I have to use 'generalCategory' function which isn't exported. It returns the general category which tells me a lot more about the character. 2006/1/17, Ross Paterson [EMAIL PROTECTED]: On Tue, Jan 17, 2006 at 10:33:51AM +0200, Krasimir Angelov wrote: I saw that GHC already

Re: GHC.Unicode

2006-01-17 Thread Krasimir Angelov
Oh, Sorry! I didn't see it at first sight and I immediately went to GHC.Unicode. In this case is the GHC.Unicode module still in use? 2006/1/17, Ross Paterson [EMAIL PROTECTED]: On Tue, Jan 17, 2006 at 11:29:42AM +0200, Krasimir Angelov wrote: The problem is that I have to use 'generalCategory

  1   2   >