packages feed

acme-now (empty) → 1.0.0

raw patch · 3 files changed

+64/−0 lines, 3 filesdep +basedep +timesetup-changed

Dependencies added: base, time

Files

+ Setup.lhs view
@@ -0,0 +1,6 @@+#!/usr/bin/runhaskell +> module Main where+> import Distribution.Simple+> main :: IO ()+> main = defaultMain+
+ acme-now.cabal view
@@ -0,0 +1,46 @@+name: acme-now+version: 1.0.0+cabal-version: -any+build-type: Simple+license: PublicDomain+license-file: ""+copyright:+maintainer: sjurberengal@gmail.com+build-depends: base >=4.1 && <5, time <=1.1.3 && <1.2+stability: Stable+homepage:+package-url:+bug-reports:+synopsis: An interface to the philosophical and metaphysical "now"+description: The ancient greek philosopher Parmenides provided a proof that change is impossible. It therefore stands to reason that there is only one moment in time, and it never changes. This library provides an interface to that moment, allowing it to be used in computations.+category: Acme+author: Sjur Gjøstein Karevoll+tested-with:+data-files:+data-dir: ""+extra-source-files:+extra-tmp-files:+exposed-modules: Acme.Time.Now+exposed: True+buildable: True+build-tools:+cpp-options:+cc-options:+ld-options:+pkgconfig-depends:+frameworks:+c-sources:+extensions:+extra-libraries:+extra-lib-dirs:+includes:+install-includes:+include-dirs:+hs-source-dirs: scr+other-modules:+ghc-prof-options:+ghc-shared-options:+ghc-options:+hugs-options:+nhc98-options:+jhc-options:
+ scr/Acme/Time/Now.hs view
@@ -0,0 +1,12 @@+module Acme.Time.Now (now) where++import Data.Time (getCurrentTime, UTCTime)+import System.IO.Unsafe (unsafePerformIO)+++-- | The unchanging \"now\". If you get any errors or unexpecting results from using+--   this value, it's because your assumptions about the nature of time are wrong.+--   I have a proof of this, but the margin isn't large enough to contain it.+now :: UTCTime+now = unsafePerformIO getCurrentTime+