Le 31 mars 2014 18:07, "martin" <martin.drautzburg@web.de> a écrit :
>
> Hello all,
>
> I found myselft writing this ugly piece of code
>
> silenceAll  :: TI -> State (M.Map CH StringState,[DtzEvent]) TI
> silenceAll  t =
Cut
>
> because I couldn't figure out how to map (silence t) over [0..6]. What is the standard way of doing this

As said, mapM_ is the standard way to do that .
How could you have found this for yourself ? The recommended way would be to use hoogle to search for the type signature you wish :
(Monad m) => (a -> m b) -> [a] -> m ()
mapM_ would be among the first results.

--
Jedaï