packages feed

descript-lang-0.2.0.0: src/Descript/Misc/Build/Write/Compile/Code.hs

module Descript.Misc.Build.Write.Compile.Code
  ( languageExt
  ) where

import Data.Char

-- TODO Get language extension (and other future information like
-- command for running program) from a database. Want current
-- implementation (return the language itself as an extension) to be
-- backup.

-- | Gets the file extension for the given language.
languageExt :: String -> String
languageExt = map toLower