names-th: drop deprecated definition.

This commit is contained in:
Kei Hibino 2018-06-22 19:27:27 +09:00
parent 0f02021b36
commit 20d627993f

View File

@ -23,9 +23,6 @@ module Language.Haskell.TH.Name.CamelCase (
toTypeCon, toDataCon,
toVarExp, toVarPat,
-- * Deprecated
varNameWithPrefix,
) where
import Data.Char (toUpper, toLower)
@ -103,14 +100,6 @@ conCamelcaseName = toConName . camelcaseUpper
varCamelcaseName :: String -> VarName
varCamelcaseName = toVarName . camelcaseUpper
-- | Make camel-cased variable name with prefix like below.
--
-- > name `varNamePrefix` prefix
--
{-# DEPRECATED varNameWithPrefix "should simply use toVarName." #-}
varNameWithPrefix :: String -> String -> VarName
varNameWithPrefix n p = toVarName $ p ++ camelcaseUpper n
{- $makeTemplates
Make haskell templates from names.
-}