Commit c3bea705 authored by Klaus Aehlig's avatar Klaus Aehlig

Add lenses for the job queue objects

...so that manipulations deep within such an object
get more simple.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
parent a35a4f52
......@@ -777,6 +777,7 @@ HS_LIB_SRCS = \
src/Ganeti/Hs2Py/GenOpCodes.hs \
src/Ganeti/Hs2Py/OpDoc.hs \
src/Ganeti/JQueue.hs \
src/Ganeti/JQueue/Lens.hs \
src/Ganeti/JQueue/Objects.hs \
src/Ganeti/JQScheduler.hs \
src/Ganeti/JSON.hs \
......
{-# LANGUAGE TemplateHaskell #-}
{-| Lenses for job-queue objects
-}
{-
Copyright (C) 2014 Google Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
-}
module Ganeti.JQueue.Lens where
import Ganeti.JQueue.Objects
import Ganeti.Lens (makeCustomLenses)
$(makeCustomLenses ''QueuedOpCode)
$(makeCustomLenses ''QueuedJob)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment