Revision 13f59e11

b/Makefile.am
758 758
	src/Ganeti/Utils.hs \
759 759
	src/Ganeti/VCluster.hs \
760 760
	src/Ganeti/WConfd/ConfigState.hs \
761
	src/Ganeti/WConfd/Core.hs \
761 762
	src/Ganeti/WConfd/Monad.hs
762 763

  
763 764
HS_TEST_SRCS = \
b/src/Ganeti/WConfd/Core.hs
1
{-# LANGUAGE TemplateHaskell #-}
2

  
3
{-| The Ganeti WConfd core functions.
4

  
5
As TemplateHaskell require that splices be defined in a separate
6
module, we combine all the TemplateHaskell functionality that HTools
7
needs in this module (except the one for unittests).
8

  
9
-}
10

  
11
{-
12

  
13
Copyright (C) 2013 Google Inc.
14

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

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

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

  
30
-}
31

  
32
module Ganeti.WConfd.Core where
33

  
34
import Language.Haskell.TH (Name)
35

  
36
import Ganeti.WConfd.Monad
37

  
38
-- * The list of all functions exported to RPC.
39

  
40
-- Just a test function
41
echo :: String -> WConfdMonad String
42
echo = return
43

  
44
exportedFunctions :: [Name]
45
exportedFunctions = [ 'echo ]

Also available in: Unified diff