[Haskell-cafe] ANN: restricted-workers-0.1

2013-08-12 Thread Daniel F
Introducing: restricted-workers library, version 0.1.0.

This library provides an abstract interface for running various kinds
of workers under resource restrictions. It is being developed as part
of the interactive-diagrams project and you can read more about the
origins of the library in my GSoC report:
http://parenz.wordpress.com/2013/07/15/interactive-diagrams-gsoc-progress-report/

The library provides a convenient way of running worker processes,
saving data obtained by the workers at start-up, a simple pool
abstraction and a configurable security and resource limitations.

Right now there are several kinds of security restrictions that could
be applied to the worker process:

- RLimits
- chroot jail
- custom process euid
- cgroups
- process niceness
- SELinux security context

You can read more about the library on the wiki:
https://github.com/co-dan/interactive-diagrams/wiki/Restricted-Workers

The library has been uploaded to hackage and you can install it using
cabal-install.


-- 
Thanks
-- Daniil Frumin

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


[Haskell-cafe] xmonad (+ mate) evince problem?

2013-08-12 Thread Johannes Waldmann
Hi. I am using xmonad + mate (on fedora 19)
and evince (PDF viewer) seems unresponsive: 
it reacts to my (mouse) input 
only after switching to another screen and back.
Any hints? - Thanks, J. W.




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


Re: [Haskell-cafe] Renumbered mailing list posts

2013-08-12 Thread Joachim Breitner
Hi,

Am Samstag, den 10.08.2013, 10:49 +0200 schrieb Henning Thielemann:
 Recently I found that links from Google search results to archive 
 Haskell-Cafe messages are invalid. The messages are still there, but got 
 a different number. E.g. the search result says:
http://www.haskell.org/pipermail/haskell-cafe/2011-February/089455.html
 
 But the message is at
http://www.haskell.org/pipermail/haskell-cafe/2011-February/088146.html
 
 Also links from Haskell-Wiki articles to the Haskell-Cafe archive are 
 invalid now. This is very very very bad, since I used tons of such URLs 
 in Wiki articles and it is very hard to find the message I referred to, 
 if the URL does not work anymore.


happens with mailman/pipermail occasionally. It is more reliable to link
to message ids, e.g. via gmame:
http://mid.gmane.org/4D779F63.9050506%40irit.fr (random example from my browser 
history)

lists.debian.org also allows links with message ids:
http://lists.debian.org/20120408083121.GB9680@flashgordon (another random 
example)
but I don’t know if this is an easy to enable standard mailman feature.

Greetings,
Joachim

-- 
Joachim “nomeata” Breitner
  m...@joachim-breitner.de • http://www.joachim-breitner.de/
  Jabber: nome...@joachim-breitner.de  • GPG-Key: 0x4743206C
  Debian Developer: nome...@debian.org


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] Renumbered mailing list posts

2013-08-12 Thread Sven Panne
2013/8/12 Joachim Breitner m...@joachim-breitner.de:
 happens with mailman/pipermail occasionally.

o_O That's news to me... Why/how does this happen? This sounds like a
serious bug to me, the URLs should really, really be stable to be of
any use.

  It is more reliable to link to message ids, e.g. via gmame: [...]

That hint doesn't really help to unbreak the Haskell wiki, the various
trac instances, my mailbox, etc. :-(

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


Re: [Haskell-cafe] Renumbered mailing list posts

2013-08-12 Thread Joachim Breitner
Hi,

Am Montag, den 12.08.2013, 14:52 +0200 schrieb Sven Panne:
 2013/8/12 Joachim Breitner m...@joachim-breitner.de:
  happens with mailman/pipermail occasionally.
 
 o_O That's news to me... Why/how does this happen? This sounds like a
 serious bug to me, the URLs should really, really be stable to be of
 any use.

I only observed it, never debugged it, but I think a common case is if
mailing lists posts are removed (e.g. because they are spam) and then
the archive is re-created.

   It is more reliable to link to message ids, e.g. via gmame: [...]
 
 That hint doesn't really help to unbreak the Haskell wiki, the various
 trac instances, my mailbox, etc. :-(

Unfortunately true.

Greetings,
Joachim

-- 
Joachim “nomeata” Breitner
  m...@joachim-breitner.de • http://www.joachim-breitner.de/
  Jabber: nome...@joachim-breitner.de  • GPG-Key: 0x4743206C
  Debian Developer: nome...@debian.org


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] more gtk help

2013-08-12 Thread Claude Heiland-Allen
Hi Brian,

On 12/08/13 03:52, bri...@aracnet.com wrote:
...
 Couldn't match expected type
...
   Gtk.on Gtk.exposeEvent glCanvas $ \ _ - putStrLn foo
...
 I looked up the type of Gtk.on and exposeEvent :
...
 on
   :: object
  - Signal object callback - callback - IO (ConnectId object)
...

I think you have the arguments flipped, try:

Gtk.on glCanvas Gtk.exposeEvent $ \_ - ...


As for explaining the types - as I understand it, you have an object and
a callback, and the Signal associates the object with the callback for a
specific event type.  The type variables occur more than once in the
whole type for safety: the right type of callback must be provided for
the event type, and the object must support the event type too.


Claude
-- 
http://mathr.co.uk


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


[Haskell-cafe] Default query for AcidState?

2013-08-12 Thread Kyle Hanson
I am looking for something with a type signature like this:

grabAcidState :: AcidState as - IO as

basically I just want to return my data from database abstractly or based
on a class.

The reason for this is because I want to have a class instance of state and
then I can implement my library like so:

data MyCoolData :: MyCoolData T.Text

class HasCoolData a where
 getCoolDataList :: a - MyCoolData

grabStoredList :: HasCoolData as = AcidState as - IO [MyCoolData]
grabStoredList as = do
cs - grabAcidState as
return $ getCoolDataList cs

and users could implement it like so:

data AppState = AppState {
someCoolData :: [MyCoolData]
}

instance HasCoolData AppState {
getCoolDataList = someCoolData
}

However trying to implement this simple behavior has been proving quite
difficult. Maybe I am making this too difficult and I should just have a
seperate AcidState datatype for my library.

Any help would be appreciated.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe