Statistics
| Branch: | Tag: | Revision:

root / src / Ganeti / Hs2Py / ListConstants.hs.in @ 9d049fb4

History | View | Annotate | Download (1.2 kB)

1 1b2adaa6 Jose A. Lopes
{-| Contains the list of the Haskell to Python constants.
2 1b2adaa6 Jose A. Lopes
3 4c9fdf69 Jose A. Lopes
Note that this file is autogenerated by the Makefile with a header
4 4c9fdf69 Jose A. Lopes
from @ListConstants.hs.in@.
5 4c9fdf69 Jose A. Lopes
6 1b2adaa6 Jose A. Lopes
-}
7 1b2adaa6 Jose A. Lopes
8 1b2adaa6 Jose A. Lopes
{-
9 1b2adaa6 Jose A. Lopes
10 1b2adaa6 Jose A. Lopes
Copyright (C) 2013 Google Inc.
11 1b2adaa6 Jose A. Lopes
12 1b2adaa6 Jose A. Lopes
This program is free software; you can redistribute it and/or modify
13 1b2adaa6 Jose A. Lopes
it under the terms of the GNU General Public License as published by
14 1b2adaa6 Jose A. Lopes
the Free Software Foundation; either version 2 of the License, or
15 1b2adaa6 Jose A. Lopes
(at your option) any later version.
16 1b2adaa6 Jose A. Lopes
17 1b2adaa6 Jose A. Lopes
This program is distributed in the hope that it will be useful, but
18 1b2adaa6 Jose A. Lopes
WITHOUT ANY WARRANTY; without even the implied warranty of
19 1b2adaa6 Jose A. Lopes
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20 1b2adaa6 Jose A. Lopes
General Public License for more details.
21 1b2adaa6 Jose A. Lopes
22 1b2adaa6 Jose A. Lopes
You should have received a copy of the GNU General Public License
23 1b2adaa6 Jose A. Lopes
along with this program; if not, write to the Free Software
24 1b2adaa6 Jose A. Lopes
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25 1b2adaa6 Jose A. Lopes
02110-1301, USA.
26 1b2adaa6 Jose A. Lopes
27 1b2adaa6 Jose A. Lopes
-}
28 1b2adaa6 Jose A. Lopes
{-# LANGUAGE TemplateHaskell #-}
29 1b2adaa6 Jose A. Lopes
module Ganeti.Hs2Py.ListConstants where
30 1b2adaa6 Jose A. Lopes
31 e1235448 Jose A. Lopes
import Ganeti.Constants
32 1b2adaa6 Jose A. Lopes
import Ganeti.Hs2Py.GenConstants
33 1b2adaa6 Jose A. Lopes
import Ganeti.PyValueInstances ()
34 1b2adaa6 Jose A. Lopes
35 1b2adaa6 Jose A. Lopes
$(genPyConstants "pyConstants"
36 1b2adaa6 Jose A. Lopes
  (
37 1b2adaa6 Jose A. Lopes
PY_CONSTANT_NAMES[]))
38 1b2adaa6 Jose A. Lopes
39 1b2adaa6 Jose A. Lopes
putConstants :: IO ()
40 1b2adaa6 Jose A. Lopes
putConstants =
41 1b2adaa6 Jose A. Lopes
  sequence_ [ putStrLn (k ++ " = " ++ v) | (k, v) <- pyConstants ]