Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (1.2 kB)

1
{-| Contains the list of the Haskell to Python constants.
2

    
3
Note that this file is autogenerated by the Makefile with a header
4
from @ListConstants.hs.in@.
5

    
6
-}
7

    
8
{-
9

    
10
Copyright (C) 2013 Google Inc.
11

    
12
This program is free software; you can redistribute it and/or modify
13
it under the terms of the GNU General Public License as published by
14
the Free Software Foundation; either version 2 of the License, or
15
(at your option) any later version.
16

    
17
This program is distributed in the hope that it will be useful, but
18
WITHOUT ANY WARRANTY; without even the implied warranty of
19
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20
General Public License for more details.
21

    
22
You should have received a copy of the GNU General Public License
23
along with this program; if not, write to the Free Software
24
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25
02110-1301, USA.
26

    
27
-}
28
{-# LANGUAGE TemplateHaskell #-}
29
module Ganeti.Hs2Py.ListConstants where
30

    
31
import Ganeti.Constants
32
import Ganeti.Hs2Py.GenConstants
33
import Ganeti.PyValueInstances ()
34

    
35
$(genPyConstants "pyConstants"
36
  (
37
PY_CONSTANT_NAMES[]))
38

    
39
putConstants :: IO ()
40
putConstants =
41
  sequence_ [ putStrLn (k ++ " = " ++ v) | (k, v) <- pyConstants ]