Re: [Haskell-cafe] Join Manatee Team!

2011-01-10 Thread Andy Stewart
Hi,

From your error, you need re-install package `derive` and `regex-tdfa`,
then re-install manatee again.

BTW, follow the step i wrote at
http://hackage.haskell.org/package/manatee

Please let me know if you have any problem with Manatee.

Thanks,

  -- Andy

aditya siram  writes:

> I do have some errors in ghc-pkg but they don't seem to relate to
> manatee. I am using ghc-6.12.3
>
>>  ghc-pkg check
> There are problems in package happstack-util-0.5.0.2:
>   dependency "strict-concurrency-0.2.3-27185142ee20a352ac984eb1a7ba31ea"
> doesn't exist
> There are problems in package hlint-1.8.3:
>   dependency "uniplate-1.5.1-43c5344609d31cc668c4c59beef1c515" doesn't exist
> There are problems in package yi-0.6.2.2:
>   dependency "derive-2.3.0.2-c8dea0face9fceb5dab2c976a7cef69b" doesn't exist
>   dependency "regex-tdfa-1.1.6-49fe08d7468d9de43cefb17ac16ff6bf" doesn't exist
>   dependency "uniplate-1.5.1-43c5344609d31cc668c4c59beef1c515" doesn't exist
> There are problems in package filestore-0.3.4.1:
>   dependency "datetime-0.2-bcd61567f8553949b0cce107933fa526" doesn't exist
> There are problems in package gitit-0.7.3.6:
>   dependency "datetime-0.2-bcd61567f8553949b0cce107933fa526" doesn't exist
>
> The following packages are broken, either because they have a problem
> listed above, or because they depend on a broken package.
> happstack-util-0.5.0.2
> hlint-1.8.3
> yi-0.6.2.2
> filestore-0.3.4.1
> gitit-0.7.3.6
> happstack-0.5.0.3
> happstack-server-0.5.0.2
> happstack-ixset-0.5.0.3
> happstack-data-0.5.0.2
> happstack-state-0.5.0.4
>
>> ghc --version
> The Glorious Glasgow Haskell Compilation System, version 6.12.3
>
> -deech
>
> On Mon, Jan 10, 2011 at 8:40 PM, Andy Stewart  
> wrote:
>> Hi aditya,
>>
>> What's the result of command "ghc-pkg check"?
>> And which GHC version do you use?
>>
>> Manatee can't work with ghc-7.0.1 (ghc-7.0.1 have bug)
>>
>> Thanks,
>>
>>  -- Andy
>>
>> aditya siram  writes:
>>
>>> Thanks for the great software! I tried to install manatee from Hackage
>>> and got the following error:
>>> Configuring manatee-core-0.0.7...
>>> Warning: This package indirectly depends on multiple versions of the same
>>> package. This is highly likely to cause a compile failure.
>>> package uniplate-1.5.1 requires containers-0.3.0.0
>>> package template-haskell-2.4.0.1 requires containers-0.3.0.0
>>> package regex-tdfa-1.1.6 requires containers-0.3.0.0
>>> package regex-base-0.93.2 requires containers-0.3.0.0
>>> package pango-0.12.0 requires containers-0.3.0.0
>>> package manatee-core-0.0.7 requires containers-0.3.0.0
>>> package hpc-0.5.0.5 requires containers-0.3.0.0
>>> package gtksourceview2-0.12.2 requires containers-0.3.0.0
>>> package gtk-serialized-event-0.12.0 requires containers-0.3.0.0
>>> package gtk-0.12.0 requires containers-0.3.0.0
>>> package glib-0.12.0 requires containers-0.3.0.0
>>> package gio-0.12.0 requires containers-0.3.0.0
>>> package ghc-binary-0.5.0.2 requires containers-0.3.0.0
>>> package ghc-6.12.3 requires containers-0.3.0.0
>>> package gconf-0.12.0 requires containers-0.3.0.0
>>> package derive-2.4.1 requires containers-0.3.0.0
>>> package deepseq-1.1.0.2 requires containers-0.3.0.0
>>> package dbus-core-0.8.5.3 requires containers-0.3.0.0
>>> package dbus-client-0.3 requires containers-0.3.0.0
>>> package dataenc-0.13.0.4 requires containers-0.3.0.0
>>> package binary-0.5.0.2 requires containers-0.3.0.0
>>> package Cabal-1.8.0.6 requires containers-0.3.0.0
>>> package template-haskell-2.4.0.1 requires containers-0.4.0.0
>>> package regex-base-0.93.2 requires mtl-1.1.0.2
>>> package uniplate-1.5.1 requires mtl-2.0.1.0
>>> package regex-tdfa-1.1.6 requires mtl-2.0.1.0
>>> package pango-0.12.0 requires mtl-2.0.1.0
>>> package manatee-core-0.0.7 requires mtl-2.0.1.0
>>> package gtksourceview2-0.12.2 requires mtl-2.0.1.0
>>> package gtk-serialized-event-0.12.0 requires mtl-2.0.1.0
>>> package gtk-0.12.0 requires mtl-2.0.1.0
>>> package gio-0.12.0 requires mtl-2.0.1.0
>>> package gconf-0.12.0 requires mtl-2.0.1.0
>>> package cairo-0.12.0 requires mtl-2.0.1.0
>>> package QuickCheck-2.1.1.1 requires mtl-2.0.1.0
>>> package ghc-6.12.3 requires template-haskell-2.4.0.1
>>> package manatee-core-0.0.7 requires template-haskell-2.4.0.1
>>> package derive-2.4.1 requires template-haskell-2.4.0.1
>>> Preprocessing library manatee-core-0.0.7...
>>> Building manatee-core-0.0.7...
>>> : cannot satisfy -package-id
>>> derive-2.4.1-4ef8b6126acc8c74f66079e125ebc9fd:
>>>     derive-2.4.1-4ef8b6126acc8c74f66079e125ebc9fd is unusable due to
>>> missing or recursive dependencies:
>>>       template-haskell-2.4.0.1-e67380b2b1931beefbe73530e50ff045
>>>     (use -v for more information)
>>> cabal: Error: some packages failed to install:
>>> manatee-0.1.7 depends on manatee-core-0.0.7 which failed to install.
>>> manatee-core-0.0.7 failed during the building phase. The exception was:
>>> exit: ExitFailure 1
>>>
>>> -deech
>>>
>>> On Mon, Jan 10, 2011 at 7:45 PM, Andy Stewart  
>>> wrote:
 

[Haskell-cafe] ghci 6.12.3 segfaults for reasons unknown to me.

2011-01-10 Thread Michael Litchard
mlitch...@kether:~/projects/perf/autoperf/session_creator/newtry2/strings$
ghci -v
GHCi, version 6.12.3: http://www.haskell.org/ghc/  :? for help
Glasgow Haskell Compiler, Version 6.12.3, for Haskell 98, stage 2 booted by
GHC version 6.8.2
ghci was working a few weeks ago. I may have hidden a package or installed
one to cause this segfault now. Could someone help me troubleshoot what is
causing this? I did a stack trace but could not discern any useful info from
it.



Using binary package database:
/usr/local/lib/ghc-6.12.3/package.conf.d/package.cache
Using binary package database:
/home/mlitchard/.ghc/x86_64-linux-6.12.3/package.conf.d/package.cache
hiding package parsec-2.1.0.1 to avoid conflict with later version
parsec-3.1.0
hiding package base-3.0.3.2 to avoid conflict with later version
base-4.2.0.2
wired-in package ghc-prim mapped to
ghc-prim-0.2.0.0-5da421112969a971aa3433fdf154b37a
wired-in package integer-gmp mapped to
integer-gmp-0.2.0.1-67f3940ec8fd509683668f40451c9ca1
wired-in package base mapped to
base-4.2.0.2-cc69ae37cc080e111e11df0109986bd2
wired-in package rts mapped to builtin_rts
wired-in package haskell98 mapped to
haskell98-1.0.1.1-4d2891ad99eae334ff8234bcfbddce06
wired-in package template-haskell mapped to
template-haskell-2.4.0.1-e9e9c63092746bd4a3f64cc37ddb1e06
wired-in package dph-seq mapped to
dph-seq-0.4.0-5ed11291726022ff6bb22049478399e8
wired-in package dph-par mapped to
dph-par-0.4.0-5a5a24e36763903b0b26f03d8d510a95
Hsc static flags: -static
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Segmentation fault
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Join Manatee Team!

2011-01-10 Thread aditya siram
I do have some errors in ghc-pkg but they don't seem to relate to
manatee. I am using ghc-6.12.3

>  ghc-pkg check
There are problems in package happstack-util-0.5.0.2:
  dependency "strict-concurrency-0.2.3-27185142ee20a352ac984eb1a7ba31ea"
doesn't exist
There are problems in package hlint-1.8.3:
  dependency "uniplate-1.5.1-43c5344609d31cc668c4c59beef1c515" doesn't exist
There are problems in package yi-0.6.2.2:
  dependency "derive-2.3.0.2-c8dea0face9fceb5dab2c976a7cef69b" doesn't exist
  dependency "regex-tdfa-1.1.6-49fe08d7468d9de43cefb17ac16ff6bf" doesn't exist
  dependency "uniplate-1.5.1-43c5344609d31cc668c4c59beef1c515" doesn't exist
There are problems in package filestore-0.3.4.1:
  dependency "datetime-0.2-bcd61567f8553949b0cce107933fa526" doesn't exist
There are problems in package gitit-0.7.3.6:
  dependency "datetime-0.2-bcd61567f8553949b0cce107933fa526" doesn't exist

The following packages are broken, either because they have a problem
listed above, or because they depend on a broken package.
happstack-util-0.5.0.2
hlint-1.8.3
yi-0.6.2.2
filestore-0.3.4.1
gitit-0.7.3.6
happstack-0.5.0.3
happstack-server-0.5.0.2
happstack-ixset-0.5.0.3
happstack-data-0.5.0.2
happstack-state-0.5.0.4

> ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.12.3

-deech

On Mon, Jan 10, 2011 at 8:40 PM, Andy Stewart  wrote:
> Hi aditya,
>
> What's the result of command "ghc-pkg check"?
> And which GHC version do you use?
>
> Manatee can't work with ghc-7.0.1 (ghc-7.0.1 have bug)
>
> Thanks,
>
>  -- Andy
>
> aditya siram  writes:
>
>> Thanks for the great software! I tried to install manatee from Hackage
>> and got the following error:
>> Configuring manatee-core-0.0.7...
>> Warning: This package indirectly depends on multiple versions of the same
>> package. This is highly likely to cause a compile failure.
>> package uniplate-1.5.1 requires containers-0.3.0.0
>> package template-haskell-2.4.0.1 requires containers-0.3.0.0
>> package regex-tdfa-1.1.6 requires containers-0.3.0.0
>> package regex-base-0.93.2 requires containers-0.3.0.0
>> package pango-0.12.0 requires containers-0.3.0.0
>> package manatee-core-0.0.7 requires containers-0.3.0.0
>> package hpc-0.5.0.5 requires containers-0.3.0.0
>> package gtksourceview2-0.12.2 requires containers-0.3.0.0
>> package gtk-serialized-event-0.12.0 requires containers-0.3.0.0
>> package gtk-0.12.0 requires containers-0.3.0.0
>> package glib-0.12.0 requires containers-0.3.0.0
>> package gio-0.12.0 requires containers-0.3.0.0
>> package ghc-binary-0.5.0.2 requires containers-0.3.0.0
>> package ghc-6.12.3 requires containers-0.3.0.0
>> package gconf-0.12.0 requires containers-0.3.0.0
>> package derive-2.4.1 requires containers-0.3.0.0
>> package deepseq-1.1.0.2 requires containers-0.3.0.0
>> package dbus-core-0.8.5.3 requires containers-0.3.0.0
>> package dbus-client-0.3 requires containers-0.3.0.0
>> package dataenc-0.13.0.4 requires containers-0.3.0.0
>> package binary-0.5.0.2 requires containers-0.3.0.0
>> package Cabal-1.8.0.6 requires containers-0.3.0.0
>> package template-haskell-2.4.0.1 requires containers-0.4.0.0
>> package regex-base-0.93.2 requires mtl-1.1.0.2
>> package uniplate-1.5.1 requires mtl-2.0.1.0
>> package regex-tdfa-1.1.6 requires mtl-2.0.1.0
>> package pango-0.12.0 requires mtl-2.0.1.0
>> package manatee-core-0.0.7 requires mtl-2.0.1.0
>> package gtksourceview2-0.12.2 requires mtl-2.0.1.0
>> package gtk-serialized-event-0.12.0 requires mtl-2.0.1.0
>> package gtk-0.12.0 requires mtl-2.0.1.0
>> package gio-0.12.0 requires mtl-2.0.1.0
>> package gconf-0.12.0 requires mtl-2.0.1.0
>> package cairo-0.12.0 requires mtl-2.0.1.0
>> package QuickCheck-2.1.1.1 requires mtl-2.0.1.0
>> package ghc-6.12.3 requires template-haskell-2.4.0.1
>> package manatee-core-0.0.7 requires template-haskell-2.4.0.1
>> package derive-2.4.1 requires template-haskell-2.4.0.1
>> Preprocessing library manatee-core-0.0.7...
>> Building manatee-core-0.0.7...
>> : cannot satisfy -package-id
>> derive-2.4.1-4ef8b6126acc8c74f66079e125ebc9fd:
>>     derive-2.4.1-4ef8b6126acc8c74f66079e125ebc9fd is unusable due to
>> missing or recursive dependencies:
>>       template-haskell-2.4.0.1-e67380b2b1931beefbe73530e50ff045
>>     (use -v for more information)
>> cabal: Error: some packages failed to install:
>> manatee-0.1.7 depends on manatee-core-0.0.7 which failed to install.
>> manatee-core-0.0.7 failed during the building phase. The exception was:
>> exit: ExitFailure 1
>>
>> -deech
>>
>> On Mon, Jan 10, 2011 at 7:45 PM, Andy Stewart  
>> wrote:
>>> Hi all,
>>>
>>> I'm Andy, the author of Manatee
>>> ( http://haskell.org/haskellwiki/Manatee ).
>>>
>>> You can watch video
>>>  http://www.youtube.com/watch?v=weS6zys3U8k
>>>  (or http://www.youtube.com/watch?v=A3DgKDVkyeM )
>>> to understand "What is it?" . :)
>>>
>>> Manatee is Haskell integrated environment written in Haskell.
>>>
>>> The goal of the Manatee project is provide a fast, safe and flexible
>>> integrated envir

Re: [Haskell-cafe] Join Manatee Team!

2011-01-10 Thread Andy Stewart
Hi aditya,

What's the result of command "ghc-pkg check"?
And which GHC version do you use?

Manatee can't work with ghc-7.0.1 (ghc-7.0.1 have bug)

Thanks,

  -- Andy

aditya siram  writes:

> Thanks for the great software! I tried to install manatee from Hackage
> and got the following error:
> Configuring manatee-core-0.0.7...
> Warning: This package indirectly depends on multiple versions of the same
> package. This is highly likely to cause a compile failure.
> package uniplate-1.5.1 requires containers-0.3.0.0
> package template-haskell-2.4.0.1 requires containers-0.3.0.0
> package regex-tdfa-1.1.6 requires containers-0.3.0.0
> package regex-base-0.93.2 requires containers-0.3.0.0
> package pango-0.12.0 requires containers-0.3.0.0
> package manatee-core-0.0.7 requires containers-0.3.0.0
> package hpc-0.5.0.5 requires containers-0.3.0.0
> package gtksourceview2-0.12.2 requires containers-0.3.0.0
> package gtk-serialized-event-0.12.0 requires containers-0.3.0.0
> package gtk-0.12.0 requires containers-0.3.0.0
> package glib-0.12.0 requires containers-0.3.0.0
> package gio-0.12.0 requires containers-0.3.0.0
> package ghc-binary-0.5.0.2 requires containers-0.3.0.0
> package ghc-6.12.3 requires containers-0.3.0.0
> package gconf-0.12.0 requires containers-0.3.0.0
> package derive-2.4.1 requires containers-0.3.0.0
> package deepseq-1.1.0.2 requires containers-0.3.0.0
> package dbus-core-0.8.5.3 requires containers-0.3.0.0
> package dbus-client-0.3 requires containers-0.3.0.0
> package dataenc-0.13.0.4 requires containers-0.3.0.0
> package binary-0.5.0.2 requires containers-0.3.0.0
> package Cabal-1.8.0.6 requires containers-0.3.0.0
> package template-haskell-2.4.0.1 requires containers-0.4.0.0
> package regex-base-0.93.2 requires mtl-1.1.0.2
> package uniplate-1.5.1 requires mtl-2.0.1.0
> package regex-tdfa-1.1.6 requires mtl-2.0.1.0
> package pango-0.12.0 requires mtl-2.0.1.0
> package manatee-core-0.0.7 requires mtl-2.0.1.0
> package gtksourceview2-0.12.2 requires mtl-2.0.1.0
> package gtk-serialized-event-0.12.0 requires mtl-2.0.1.0
> package gtk-0.12.0 requires mtl-2.0.1.0
> package gio-0.12.0 requires mtl-2.0.1.0
> package gconf-0.12.0 requires mtl-2.0.1.0
> package cairo-0.12.0 requires mtl-2.0.1.0
> package QuickCheck-2.1.1.1 requires mtl-2.0.1.0
> package ghc-6.12.3 requires template-haskell-2.4.0.1
> package manatee-core-0.0.7 requires template-haskell-2.4.0.1
> package derive-2.4.1 requires template-haskell-2.4.0.1
> Preprocessing library manatee-core-0.0.7...
> Building manatee-core-0.0.7...
> : cannot satisfy -package-id
> derive-2.4.1-4ef8b6126acc8c74f66079e125ebc9fd:
> derive-2.4.1-4ef8b6126acc8c74f66079e125ebc9fd is unusable due to
> missing or recursive dependencies:
>   template-haskell-2.4.0.1-e67380b2b1931beefbe73530e50ff045
> (use -v for more information)
> cabal: Error: some packages failed to install:
> manatee-0.1.7 depends on manatee-core-0.0.7 which failed to install.
> manatee-core-0.0.7 failed during the building phase. The exception was:
> exit: ExitFailure 1
>
> -deech
>
> On Mon, Jan 10, 2011 at 7:45 PM, Andy Stewart  
> wrote:
>> Hi all,
>>
>> I'm Andy, the author of Manatee
>> ( http://haskell.org/haskellwiki/Manatee ).
>>
>> You can watch video
>>  http://www.youtube.com/watch?v=weS6zys3U8k
>>  (or http://www.youtube.com/watch?v=A3DgKDVkyeM )
>> to understand "What is it?" . :)
>>
>> Manatee is Haskell integrated environment written in Haskell.
>>
>> The goal of the Manatee project is provide a fast, safe and flexible
>> integrated environment for haskell hacking.
>>
>> Some cool feature in Manatee:
>>
>>    * It can dynamic update Haskell extension code in runtime, like elisp
>>      for Emacs.
>>
>>    * It protected every application in sandbox, so it minimum your
>>      losses once unexpected exception throw.
>>
>>    * It's multi-thread design, it's won't freeze your operation in anytime.
>>
>>    * It provide handy window manage, you can mix any application
>>      together fastly.
>>
>>    * You can use keyboard control everything you want, and same
>>      experience in all applications. :)
>>
>>    * You can use it develop any application you want, not just text
>>      toy. :)
>>
>>    ... etc.
>>
>> I'm looking for new developer join Manatee Team, I believe you guys can
>> develop cooler application than me. :)
>>
>> If you interested Manatee, welcome to join
>>
>>   manatee-u...@googlegroups.com
>>   (or https://groups.google.com/forum/#!forum/manatee-user )
>>
>> Thanks,
>>
>>  -- Andy
>>
>> PS. I'm working on session manager and IDE feature...
>>
>>
>> ___
>> Haskell-Cafe mailing list
>> Haskell-Cafe@haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Join Manatee Team!

2011-01-10 Thread aditya siram
Thanks for the great software! I tried to install manatee from Hackage
and got the following error:
Configuring manatee-core-0.0.7...
Warning: This package indirectly depends on multiple versions of the same
package. This is highly likely to cause a compile failure.
package uniplate-1.5.1 requires containers-0.3.0.0
package template-haskell-2.4.0.1 requires containers-0.3.0.0
package regex-tdfa-1.1.6 requires containers-0.3.0.0
package regex-base-0.93.2 requires containers-0.3.0.0
package pango-0.12.0 requires containers-0.3.0.0
package manatee-core-0.0.7 requires containers-0.3.0.0
package hpc-0.5.0.5 requires containers-0.3.0.0
package gtksourceview2-0.12.2 requires containers-0.3.0.0
package gtk-serialized-event-0.12.0 requires containers-0.3.0.0
package gtk-0.12.0 requires containers-0.3.0.0
package glib-0.12.0 requires containers-0.3.0.0
package gio-0.12.0 requires containers-0.3.0.0
package ghc-binary-0.5.0.2 requires containers-0.3.0.0
package ghc-6.12.3 requires containers-0.3.0.0
package gconf-0.12.0 requires containers-0.3.0.0
package derive-2.4.1 requires containers-0.3.0.0
package deepseq-1.1.0.2 requires containers-0.3.0.0
package dbus-core-0.8.5.3 requires containers-0.3.0.0
package dbus-client-0.3 requires containers-0.3.0.0
package dataenc-0.13.0.4 requires containers-0.3.0.0
package binary-0.5.0.2 requires containers-0.3.0.0
package Cabal-1.8.0.6 requires containers-0.3.0.0
package template-haskell-2.4.0.1 requires containers-0.4.0.0
package regex-base-0.93.2 requires mtl-1.1.0.2
package uniplate-1.5.1 requires mtl-2.0.1.0
package regex-tdfa-1.1.6 requires mtl-2.0.1.0
package pango-0.12.0 requires mtl-2.0.1.0
package manatee-core-0.0.7 requires mtl-2.0.1.0
package gtksourceview2-0.12.2 requires mtl-2.0.1.0
package gtk-serialized-event-0.12.0 requires mtl-2.0.1.0
package gtk-0.12.0 requires mtl-2.0.1.0
package gio-0.12.0 requires mtl-2.0.1.0
package gconf-0.12.0 requires mtl-2.0.1.0
package cairo-0.12.0 requires mtl-2.0.1.0
package QuickCheck-2.1.1.1 requires mtl-2.0.1.0
package ghc-6.12.3 requires template-haskell-2.4.0.1
package manatee-core-0.0.7 requires template-haskell-2.4.0.1
package derive-2.4.1 requires template-haskell-2.4.0.1
Preprocessing library manatee-core-0.0.7...
Building manatee-core-0.0.7...
: cannot satisfy -package-id
derive-2.4.1-4ef8b6126acc8c74f66079e125ebc9fd:
derive-2.4.1-4ef8b6126acc8c74f66079e125ebc9fd is unusable due to
missing or recursive dependencies:
  template-haskell-2.4.0.1-e67380b2b1931beefbe73530e50ff045
(use -v for more information)
cabal: Error: some packages failed to install:
manatee-0.1.7 depends on manatee-core-0.0.7 which failed to install.
manatee-core-0.0.7 failed during the building phase. The exception was:
exit: ExitFailure 1

-deech

On Mon, Jan 10, 2011 at 7:45 PM, Andy Stewart  wrote:
> Hi all,
>
> I'm Andy, the author of Manatee
> ( http://haskell.org/haskellwiki/Manatee ).
>
> You can watch video
>  http://www.youtube.com/watch?v=weS6zys3U8k
>  (or http://www.youtube.com/watch?v=A3DgKDVkyeM )
> to understand "What is it?" . :)
>
> Manatee is Haskell integrated environment written in Haskell.
>
> The goal of the Manatee project is provide a fast, safe and flexible
> integrated environment for haskell hacking.
>
> Some cool feature in Manatee:
>
>    * It can dynamic update Haskell extension code in runtime, like elisp
>      for Emacs.
>
>    * It protected every application in sandbox, so it minimum your
>      losses once unexpected exception throw.
>
>    * It's multi-thread design, it's won't freeze your operation in anytime.
>
>    * It provide handy window manage, you can mix any application
>      together fastly.
>
>    * You can use keyboard control everything you want, and same
>      experience in all applications. :)
>
>    * You can use it develop any application you want, not just text
>      toy. :)
>
>    ... etc.
>
> I'm looking for new developer join Manatee Team, I believe you guys can
> develop cooler application than me. :)
>
> If you interested Manatee, welcome to join
>
>   manatee-u...@googlegroups.com
>   (or https://groups.google.com/forum/#!forum/manatee-user )
>
> Thanks,
>
>  -- Andy
>
> PS. I'm working on session manager and IDE feature...
>
>
> ___
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Join Manatee Team!

2011-01-10 Thread Andy Stewart
Hi all,

I'm Andy, the author of Manatee
( http://haskell.org/haskellwiki/Manatee ).

You can watch video 
  http://www.youtube.com/watch?v=weS6zys3U8k
  (or http://www.youtube.com/watch?v=A3DgKDVkyeM )
to understand "What is it?" . :)

Manatee is Haskell integrated environment written in Haskell.

The goal of the Manatee project is provide a fast, safe and flexible
integrated environment for haskell hacking.

Some cool feature in Manatee:

* It can dynamic update Haskell extension code in runtime, like elisp
  for Emacs.

* It protected every application in sandbox, so it minimum your
  losses once unexpected exception throw.
  
* It's multi-thread design, it's won't freeze your operation in anytime.

* It provide handy window manage, you can mix any application
  together fastly.  
  
* You can use keyboard control everything you want, and same
  experience in all applications. :)

* You can use it develop any application you want, not just text
  toy. :)
  
... etc.

I'm looking for new developer join Manatee Team, I believe you guys can
develop cooler application than me. :)

If you interested Manatee, welcome to join

   manatee-u...@googlegroups.com
   (or https://groups.google.com/forum/#!forum/manatee-user )

Thanks,

  -- Andy

PS. I'm working on session manager and IDE feature...


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread Antoine Latter
On Mon, Jan 10, 2011 at 5:23 PM, Aaron Gray  wrote:
> On 10 January 2011 22:30, Henning Thielemann 
> wrote:
>>
>> John Lato schrieb:
>>
>> > You could use my "word24" package[1] (GHC only) to provide non-aligned
>> > 24-bit word and int types with Storable instances.  You should be able
>> > to write a binary instance (or whatever blaze-builder needs) fairly
>> > simply from this.  Little-endian only ATM, but BE could be added if
>> > necessary.
>>
>> Good to know that! However, I think for the original poster the binary
>> package is perfect. This way he does not worry about unsafe peeking and
>> poking around in memory.
>>
>
> Yes. I have came back to looking at the binary package, the only thing is I
> think I have to build my own primatives with it as it is big-endian, where
> ActionScript Byte Code format is little-endian. It does provide some
> little-endian functions but they are not brought to the surface. It also
> seems to roll its own serializations.

The 'binary' package supports big-endian, little-endian and
host-endian construction in the Data.Binary.Builder module, so you
hopefully won't need to reimplement too much.

> I am maybe looking at doing my own specialized set of types and binary
> backend as there are drawback with each of the existing solutions.
>   - Data.Storable.Endian - peeks and pokes rather than put/get
>   - Data.Word24 - peeks and pokes rather than put/get
>   - Data.Binary - big-endian
> ABC format may best be supported by a specific set of serialization types.
> On a different note thinking outside this problem, I would like IO_LE and
> IO_BE types if that could be make to work.
> Aaron
>
> ___
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread Aaron Gray
On 10 January 2011 22:30, Henning Thielemann
wrote:

> John Lato schrieb:
>
> > You could use my "word24" package[1] (GHC only) to provide non-aligned
> > 24-bit word and int types with Storable instances.  You should be able
> > to write a binary instance (or whatever blaze-builder needs) fairly
> > simply from this.  Little-endian only ATM, but BE could be added if
> > necessary.
>
> Good to know that! However, I think for the original poster the binary
> package is perfect. This way he does not worry about unsafe peeking and
> poking around in memory.
>
>
Yes. I have came back to looking at the binary package, the only thing is I
think I have to build my own primatives with it as it is big-endian, where
ActionScript Byte Code format is little-endian. It does provide some
little-endian functions but they are not brought to the surface. It also
seems to roll its own serializations.

I am maybe looking at doing my own specialized set of types and binary
backend as there are drawback with each of the existing solutions.

  - Data.Storable.Endian - peeks and pokes rather than put/get
  - Data.Word24 - peeks and pokes rather than put/get
  - Data.Binary - big-endian

ABC format may best be supported by a specific set of serialization types.

On a different note thinking outside this problem, I would like IO_LE and
IO_BE types if that could be make to work.

Aaron
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread Henning Thielemann
John Lato schrieb:

> You could use my "word24" package[1] (GHC only) to provide non-aligned
> 24-bit word and int types with Storable instances.  You should be able
> to write a binary instance (or whatever blaze-builder needs) fairly
> simply from this.  Little-endian only ATM, but BE could be added if
> necessary.

Good to know that! However, I think for the original poster the binary
package is perfect. This way he does not worry about unsafe peeking and
poking around in memory.


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] hoogle command line program on Linux

2011-01-10 Thread Neil Mitchell
>> If so, I'll make a new release that just changes the
>> file creation mask to the above during hoogle data (and sets it back
>> after).
>
> That makes sense. If you have a darcs repo of the code (or even a
> tarball), I can check it before create a package.

That would be very useful. I'll try and update the darcs version
tomorrow and let you know when it's done.

Thanks, Neil

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] POPL 2011 Hotel Room

2011-01-10 Thread Michael D. Adams
Hi all,

I'm a graduate student (male) and am looking for a (male) roommate to
split the cost of a hotel room at POPL.  If anyone is interested in
splitting a room, please drop me a line.

I will be attending the workshops collocated with POPL so I currently
have a reservation at the conference hotel (at the conference rate)
with check-in on January 22 (the day before the first workshop) and
check-out on January 30 (the day after the last workshop).

Michael D. Adams
Ph.D. Student, Indiana University

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] ANN: nanoparsec 0.1

2011-01-10 Thread Maciej Piechotka
On Sun, 2011-01-09 at 16:54 +, Magnus Therning wrote:
> On 09/01/11 00:46, Maciej Piechotka wrote:
> > Nanoparsec is currently simply a port of attoparsec on the ListLike (the
> > abstraction of lists used by iteratee).
> > 
> > It allows to achive in parsing a near-attoparsec levels of speed
> > (benchmarks from attoparsec library shown a 0.450 ± 0.028 for
> > attoparsec, 0.479 ± 0.043 for nanoparsec and 1.532 ± 0.084 for parsec 3)
> > combining the flexibility of stream of parsec 3 with the iterative
> > approach and speed of attoparsec.
> 
> It's a bit unfortunate that it requires base 4.3, GHC 7 hasn't made it
> into a lot of distros yet so that causes a lot of extra work when
> wanting to try it out :-(
> 
> /M

I'll fix it in next release.

Regards


signature.asc
Description: This is a digitally signed message part
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread Aaron Gray
On 10 January 2011 16:36, Antoine Latter  wrote:

> On Mon, Jan 10, 2011 at 10:17 AM, Aaron Gray 
> wrote:
> > On 10 January 2011 16:13, Daniel Fischer <
> daniel.is.fisc...@googlemail.com>
> > wrote:
> >>
> >> On Monday 10 January 2011 16:45:36, Aaron Gray wrote:
> >> >
> >> > This is interesting, what does the following line do :-
> >> >
> >> > data Int24 = I24# Int# deriving (Eq, Ord)
> >> >
> >> > regarding the I24# and Int#, are these inbuilt ?
> >>
> >> Int# is the raw machine int (4 or 8 bytes) and I24# is the constructor.
> >> GHC
> >> uses the magic hash '#' to denote raw unboxed types (and the
> constructors
> >> making ordinary boxed Haskell types from these, e.g. there's
> >>
> >> data Int = I# Int#
> >> data Word = W# Word#
> >> data Double = D# Double#
> >>
> >> and more defined in base [GHC.Types, GHC.Word]).
> >
> > So the 24 bit value is actually stored as a 32bit value. Meaning I will
> have
> > to do my own IO reader and writer code to a ByteString.
> > Thanks,
> > Aaron
> >
>
> I don't think so - the Storable instance provided for the Int24 type
> peeks and pokes 24-bit values. At least, that what I understand John's
> earlier message to mean.


Yes looking at the code it does support 24bit peeks and pokes.

Thanks,

Aaron
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread Antoine Latter
On Mon, Jan 10, 2011 at 10:17 AM, Aaron Gray  wrote:
> On 10 January 2011 16:13, Daniel Fischer 
> wrote:
>>
>> On Monday 10 January 2011 16:45:36, Aaron Gray wrote:
>> >
>> > This is interesting, what does the following line do :-
>> >
>> >     data Int24 = I24# Int# deriving (Eq, Ord)
>> >
>> > regarding the I24# and Int#, are these inbuilt ?
>>
>> Int# is the raw machine int (4 or 8 bytes) and I24# is the constructor.
>> GHC
>> uses the magic hash '#' to denote raw unboxed types (and the constructors
>> making ordinary boxed Haskell types from these, e.g. there's
>>
>> data Int = I# Int#
>> data Word = W# Word#
>> data Double = D# Double#
>>
>> and more defined in base [GHC.Types, GHC.Word]).
>
> So the 24 bit value is actually stored as a 32bit value. Meaning I will have
> to do my own IO reader and writer code to a ByteString.
> Thanks,
> Aaron
>

I don't think so - the Storable instance provided for the Int24 type
peeks and pokes 24-bit values. At least, that what I understand John's
earlier message to mean.

> ___
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread John Lato
On Mon, Jan 10, 2011 at 3:45 PM, Aaron Gray wrote:

> On 10 January 2011 13:49, John Lato  wrote:
>
>> From: Aaron Gray 
>>>
>>> On 9 January 2011 21:30, Henning Thielemann
>>> wrote:
>>>
>>> >
>>> > On Sun, 9 Jan 2011, Aaron Gray wrote:
>>> >
>>> >  I am trying to work out how to use GHC.Ptr, Foreign.Storable,
>>> >> Data.Storable.Endian, and
>>> >> am looking for good examples of usage.
>>> >>
>>> >
>>> > What do you intend to do with them?
>>> >
>>> >
>>> An (ABC) ActionScript Byte Code backend for Haskell.
>>>
>>> Basically I need to write little-endian binary to a file, and was
>>> wondering
>>> the best way to do this; I need various types including a 24bit type.
>>>
>>
>> You could use my "word24" package[1] (GHC only) to provide non-aligned
>> 24-bit word and int types with Storable instances.  You should be able to
>> write a binary instance (or whatever blaze-builder needs) fairly simply from
>> this.  Little-endian only ATM, but BE could be added if necessary.
>>
>> John Lato
>> [1] http://hackage.haskell.org/package/word24
>>
>
> This is interesting, what does the following line do :-
>
> data Int24 = I24# Int# deriving (Eq, Ord)
>
> regarding the I24# and Int#, are these inbuilt ?
>

The Int# is built-in to GHC; it's an unboxed Int type (C long int, see
http://www.haskell.org/ghc/docs/7.0-latest/html/users_guide/primitives.html#glasgow-unboxed
). I24# is not built-in; it's just a normal constructor. Although it has a
hash suffix, that's just a convention (as documented under the MagicHash
pages); it behaves exactly like any other constructor.

This means that an Int24 works just like an Int, Int16, etc. It can be lazy,
but will also be unboxed by GHC when appropriate. Arithmetic on the unboxed
type will result in machine ops. This isn't strictly necessary; Int24 could
be nearly equivalently defined as

data Int24 = Int24 {-# UNPACK #-} !Int32

but using unboxed types is perhaps more efficient. The UNPACK pragma wasn't
available when I wrote Int24, which is why I did it this way. I may revisit
this decision in the future; unboxed types are tied closely to GHC, and the
UNPACK/strict combination would be more portable and easier to maintain.

John
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread Aaron Gray
On 10 January 2011 16:13, Daniel Fischer
wrote:

> On Monday 10 January 2011 16:45:36, Aaron Gray wrote:
> >
> > This is interesting, what does the following line do :-
> >
> > data Int24 = I24# Int# deriving (Eq, Ord)
> >
> > regarding the I24# and Int#, are these inbuilt ?
>
> Int# is the raw machine int (4 or 8 bytes) and I24# is the constructor. GHC
> uses the magic hash '#' to denote raw unboxed types (and the constructors
> making ordinary boxed Haskell types from these, e.g. there's
>
> data Int = I# Int#
> data Word = W# Word#
> data Double = D# Double#
>
> and more defined in base [GHC.Types, GHC.Word]).
>

So the 24 bit value is actually stored as a 32bit value. Meaning I will have
to do my own IO reader and writer code to a ByteString.

Thanks,

Aaron
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread Daniel Fischer
On Monday 10 January 2011 16:45:36, Aaron Gray wrote:
>
> This is interesting, what does the following line do :-
>
> data Int24 = I24# Int# deriving (Eq, Ord)
>
> regarding the I24# and Int#, are these inbuilt ?

Int# is the raw machine int (4 or 8 bytes) and I24# is the constructor. GHC 
uses the magic hash '#' to denote raw unboxed types (and the constructors 
making ordinary boxed Haskell types from these, e.g. there's

data Int = I# Int#
data Word = W# Word#
data Double = D# Double#

and more defined in base [GHC.Types, GHC.Word]).

>
> Thanks,
>
> Aaron


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread Aaron Gray
On 10 January 2011 13:49, John Lato  wrote:

> From: Aaron Gray 
>>
>> On 9 January 2011 21:30, Henning Thielemann
>> wrote:
>>
>> >
>> > On Sun, 9 Jan 2011, Aaron Gray wrote:
>> >
>> >  I am trying to work out how to use GHC.Ptr, Foreign.Storable,
>> >> Data.Storable.Endian, and
>> >> am looking for good examples of usage.
>> >>
>> >
>> > What do you intend to do with them?
>> >
>> >
>> An (ABC) ActionScript Byte Code backend for Haskell.
>>
>> Basically I need to write little-endian binary to a file, and was
>> wondering
>> the best way to do this; I need various types including a 24bit type.
>>
>
> You could use my "word24" package[1] (GHC only) to provide non-aligned
> 24-bit word and int types with Storable instances.  You should be able to
> write a binary instance (or whatever blaze-builder needs) fairly simply from
> this.  Little-endian only ATM, but BE could be added if necessary.
>
> John Lato
> [1] http://hackage.haskell.org/package/word24
>

This is interesting, what does the following line do :-

data Int24 = I24# Int# deriving (Eq, Ord)

regarding the I24# and Int#, are these inbuilt ?

Thanks,

Aaron
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GHC.Ptr, Foreign.Storable, Data.Storable.Endian, looking for good examples of usage

2011-01-10 Thread John Lato
>
> From: Aaron Gray 
> On 9 January 2011 21:30, Henning Thielemann
> wrote:
>
> >
> > On Sun, 9 Jan 2011, Aaron Gray wrote:
> >
> >  I am trying to work out how to use GHC.Ptr, Foreign.Storable,
> >> Data.Storable.Endian, and
> >> am looking for good examples of usage.
> >>
> >
> > What do you intend to do with them?
> >
> >
> An (ABC) ActionScript Byte Code backend for Haskell.
>
> Basically I need to write little-endian binary to a file, and was wondering
> the best way to do this; I need various types including a 24bit type.
>

You could use my "word24" package[1] (GHC only) to provide non-aligned
24-bit word and int types with Storable instances.  You should be able to
write a binary instance (or whatever blaze-builder needs) fairly simply from
this.  Little-endian only ATM, but BE could be added if necessary.

John Lato
[1] http://hackage.haskell.org/package/word24
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] How to write such a code elegantly ?

2011-01-10 Thread Henk-Jan van Tuyl

On Mon, 10 Jan 2011 01:44:26 +0100, z_axis  wrote:


picoSec :: IO Integer
picoSec = do
t <- ctPicosec `liftM` (getClockTime >>= toCalendarTime)
return t

:

How to write these pseudo-code elegantly ?



picoSec can be simplified to:
  picoSec = ctPicosec `liftM` (getClockTime >>= toCalendarTime)
or:
  picoSec = ctPicosec <$> (getClockTime >>= toCalendarTime)

Regards,
Henk-Jan van Tuyl


--
http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
--

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Draw K-ary forest in dot script

2011-01-10 Thread J . Waldmann
> parse K-ary forest and convert it to dot script (Graphviz).

cf. http://hackage.haskell.org/package/graphviz




___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] How to write such a code elegantly ?

2011-01-10 Thread J . Waldmann
> why has the following code indentation problem ?
> 
> rollDice n = do
> let myGen =
> if doesFileExist "/dev/urandom" 
> then betterStdGen
> else (mkStdGen . fromInteger) <$> picoSec

because "if" starts in the same column as "myGen",
so the parser inserts a ";" before the "if".

J.W.



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Ratification for my understanding of functors

2011-01-10 Thread C K Kashyap
> Yes, the combination of the type constructor (mapping from types/objects to
> types/objects) and the fmap instance (mapping from functions/arrows to
> functions/arrows) together constitute the functor. Saying "list is a
> functor" is a common sloppiness just like saying "list is a monad".


Thanks Wren and Eugene.
Regards,
Kashyap

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] hoogle command line program on Linux

2011-01-10 Thread Erik de Castro Lopo
Neil Mitchell wrote:

> Should all files created by hoogle data always have world
> read/execute? I'm not sure what the Unix conventions are - would that
> be reasonable? 

The files created by the 'hoogle data' command in /usr/share/hoogle
should probably all be world readable. The directories should all
be world readable and world executable (ie allow anyone to chdir
into it).

> If so, I'll make a new release that just changes the
> file creation mask to the above during hoogle data (and sets it back
> after).

That makes sense. If you have a darcs repo of the code (or even a
tarball), I can check it before create a package.

Cheers,
Erik
-- 
--
Erik de Castro Lopo
http://www.mega-nerd.com/

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe