flexible-time (empty) → 0.1.0.0
raw patch · 4 files changed
+64/−0 lines, 4 filesdep +basedep +bytestringdep +unix-timesetup-changed
Dependencies added: base, bytestring, unix-time
Files
- LICENSE +20/−0
- Setup.hs +2/−0
- flexible-time.cabal +28/−0
- src/Data/FlexibleTime.hs +14/−0
+ LICENSE view
@@ -0,0 +1,20 @@+Copyright (c) 2015 tattsun++Permission is hereby granted, free of charge, to any person obtaining+a copy of this software and associated documentation files (the+"Software"), to deal in the Software without restriction, including+without limitation the rights to use, copy, modify, merge, publish,+distribute, sublicense, and/or sell copies of the Software, and to+permit persons to whom the Software is furnished to do so, subject to+the following conditions:++The above copyright notice and this permission notice shall be included+in all copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ flexible-time.cabal view
@@ -0,0 +1,28 @@+-- Initial flexible-time.cabal generated by cabal init. For further+-- documentation, see http://haskell.org/cabal/users-guide/++name: flexible-time+version: 0.1.0.0+synopsis: Flexible time library.+-- description:+license: MIT+license-file: LICENSE+author: tattsun+maintainer: t.t.mc1192.sf@gmail.com+-- copyright:+category: Data+build-type: Simple+-- extra-source-files:+cabal-version: >=1.10++library+ exposed-modules:+ Data.FlexibleTime+ -- other-modules:+ -- other-extensions:+ build-depends: base >=4.7 && <4.8+ , bytestring >= 0.10.4.0+ , unix-time >= 0.3.4+ hs-source-dirs: src+ default-language: Haskell2010+ ghc-options: -O2 -Wall -fwarn-tabs
+ src/Data/FlexibleTime.hs view
@@ -0,0 +1,14 @@+module Data.FlexibleTime+ ( -- Functions+ getFlexTime+ -- Types+ , FlexibleTime (..)+ ) where++import qualified Data.UnixTime as UTime+--+import Data.FlexibleTime.Internal+----------------------------------------------------------------------++getFlexTime :: IO FlexibleTime+getFlexTime = UTime.getUnixTime >>= utimeToFlexTime