packages feed

time-locale-compat (empty) → 0.1.0.0

raw patch · 4 files changed

+96/−0 lines, 4 filesdep +basedep +old-localedep +timesetup-changed

Dependencies added: base, old-locale, time

Files

+ LICENSE view
@@ -0,0 +1,30 @@+Copyright (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.
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ src/Data/Time/Locale/Compat.hs view
@@ -0,0 +1,20 @@+{-# 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 (TimeLocale, defaultTimeLocale) where++#if MIN_VERSION_time(1,5,0)+import Data.Time.Format (TimeLocale, defaultTimeLocale)+#else+import System.Locale (TimeLocale, defaultTimeLocale)+#endif
+ time-locale-compat.cabal view
@@ -0,0 +1,44 @@+-- Initial time-locale-compat.cabal generated by cabal init.  For further+-- documentation, see http://haskell.org/cabal/users-guide/++name:                time-locale-compat+version:             0.1.0.0+synopsis:            Compatibility of TimeLocale between old-locale and time-1.5+description:         This package contains wrapped name module for TimeLocale.+homepage:            http://twitter.com/khibino/+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 ture, use old-locale, otherwize 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