diff options
author | Joey Hess <joey@kitenet.net> | 2013-04-03 17:44:34 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-04-03 17:48:54 -0400 |
commit | 72b25b61e9c91668e0c05a17c50462b822885eb8 (patch) | |
tree | 73a82d2033d792c0a216ce6c0e45bd1fa126b8ff /Assistant/Types | |
parent | f768f16999d997077be98c0d8eabd3d85fd8caa5 (diff) |
clean up urlrenderer handling when the webapp is not built
Diffstat (limited to 'Assistant/Types')
-rw-r--r-- | Assistant/Types/UrlRenderer.hs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Assistant/Types/UrlRenderer.hs b/Assistant/Types/UrlRenderer.hs new file mode 100644 index 000000000..521905bf3 --- /dev/null +++ b/Assistant/Types/UrlRenderer.hs @@ -0,0 +1,26 @@ +{- webapp url renderer access from the assistant + - + - Copyright 2013 Joey Hess <joey@kitenet.net> + - + - Licensed under the GNU GPL version 3 or higher. + -} + +{-# LANGUAGE CPP #-} + +module Assistant.Types.UrlRenderer ( + UrlRenderer, + newUrlRenderer +) where + +#ifdef WITH_WEBAPP + +import Assistant.WebApp (UrlRenderer, newUrlRenderer) + +#else + +data UrlRenderer = UrlRenderer -- dummy type + +newUrlRenderer :: IO UrlRenderer +newUrlRenderer = return UrlRenderer + +#endif |