{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-overlapping-patterns #-}
module Lambdabot.Config.Telegram where
import Data.Version
import Lambdabot.Config
config "telegramBotName" [t| String |] [| "TelegramLambdabot" |]
config "telegramLambdabotVersion" [t| Version |] [| Version [] [] |]
config "muevalBinary" [t| String |] [| "mueval" |]
defaultExts :: [String]
defaultExts :: [String]
defaultExts =
[ String
"ImplicitPrelude"
, String
"ExtendedDefaultRules"
, String
"TypeApplications"
]
configWithMerge [| (++) |] "languageExts" [t| [String] |] [| defaultExts |]
trustedPkgs :: [String]
trustedPkgs :: [String]
trustedPkgs =
[ String
"array"
, String
"base"
, String
"bytestring"
, String
"containers"
, String
"lambdabot-trusted"
, String
"random"
]
configWithMerge [| (++) |] "trustedPackages" [t| [String] |] [| trustedPkgs |]
config "evalPrefixes" [t| [String] |] [| [">"] |]
config "ghcBinary" [t| String |] [| "ghc" |]
config "ghciBinary" [t| String |] [| "ghci" |]