time-locale-compat-0.1.1.1/0000755000000000000000000000000012625466732013527 5ustar0000000000000000time-locale-compat-0.1.1.1/Setup.hs0000644000000000000000000000005612625466732015164 0ustar0000000000000000import Distribution.Simple main = defaultMain time-locale-compat-0.1.1.1/LICENSE0000644000000000000000000000275612625466732014546 0ustar0000000000000000Copyright (c) 2014, Kei Hibino All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Kei Hibino nor the names of other contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. time-locale-compat-0.1.1.1/time-locale-compat.cabal0000644000000000000000000000226012625466732020167 0ustar0000000000000000name: time-locale-compat version: 0.1.1.1 synopsis: Compatibility of TimeLocale between old-locale and time-1.5 description: This package contains wrapped name module for TimeLocale. homepage: https://github.com/khibino/haskell-time-locale-compat license: BSD3 license-file: LICENSE author: Kei Hibino maintainer: ex8k.hibino@gmail.com copyright: Copyright (c) 2014 Kei Hibino category: System build-type: Simple cabal-version: >=1.10 flag old-locale description: If true, use old-locale, otherwise use time 1.5 or newer. default: True library exposed-modules: Data.Time.Locale.Compat build-depends: base <5 if flag(old-locale) build-depends: old-locale , time <1.5 else build-depends: time >=1.5 hs-source-dirs: src default-language: Haskell2010 source-repository head type: git location: https://github.com/khibino/haskell-time-locale-compat source-repository head type: mercurial location: https://bitbucket.org/khibino/haskell-time-locale-compat time-locale-compat-0.1.1.1/src/0000755000000000000000000000000012625466732014316 5ustar0000000000000000time-locale-compat-0.1.1.1/src/Data/0000755000000000000000000000000012625466732015167 5ustar0000000000000000time-locale-compat-0.1.1.1/src/Data/Time/0000755000000000000000000000000012625466732016065 5ustar0000000000000000time-locale-compat-0.1.1.1/src/Data/Time/Locale/0000755000000000000000000000000012625466732017264 5ustar0000000000000000time-locale-compat-0.1.1.1/src/Data/Time/Locale/Compat.hs0000644000000000000000000000133412625466732021044 0ustar0000000000000000{-# LANGUAGE CPP #-} -- | -- Module : Data.Time.Locale.Compat -- Copyright : 2014 Kei Hibino -- License : BSD3 -- -- Maintainer : ex8k.hibino@gmail.com -- Stability : experimental -- Portability : unknown -- -- This module provides compatibility module name -- for TimeLocale of old-locale or time-1.5. module Data.Time.Locale.Compat ( -- * Time locale interface names TimeLocale, defaultTimeLocale, -- * Date format interface names iso8601DateFormat, rfc822DateFormat, ) where #if MIN_VERSION_time(1,5,0) import Data.Time.Format (TimeLocale, defaultTimeLocale, iso8601DateFormat, rfc822DateFormat) #else import System.Locale (TimeLocale, defaultTimeLocale, iso8601DateFormat, rfc822DateFormat) #endif