Commit 4c67ea74 authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

Add lenses for OpCodes simplify manipulation of them.
Signed-off-by: default avatarKlaus Aehlig <>
Reviewed-by: default avatarPetr Pudlak <>
parent 41b63f8f
......@@ -134,6 +134,7 @@ HS_DIRS = \
src/Ganeti/Monitoring \
src/Ganeti/Metad \
src/Ganeti/Objects \
src/Ganeti/OpCodes \
src/Ganeti/Query \
src/Ganeti/Storage \
src/Ganeti/Storage/Diskstats \
......@@ -801,6 +802,7 @@ HS_LIB_SRCS = \
src/Ganeti/Objects.hs \
src/Ganeti/Objects/Lens.hs \
src/Ganeti/OpCodes.hs \
src/Ganeti/OpCodes/Lens.hs \
src/Ganeti/OpParams.hs \
src/Ganeti/Path.hs \
src/Ganeti/Parsers.hs \
{-# LANGUAGE TemplateHaskell #-}
{-| Lenses for OpCodes
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
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.OpCodes.Lens where
import Ganeti.Lens (makeCustomLenses)
import Ganeti.OpCodes
$(makeCustomLenses ''MetaOpCode)
$(makeCustomLenses ''CommonOpParams)
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