Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
time
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rinat Striungis
time
Commits
1e426fff
Commit
1e426fff
authored
16 years ago
by
Ashley Yakeley
Browse files
Options
Downloads
Patches
Plain Diff
clean up .cabal; first attempt at Windows compilability
darcs-hash:20090417063649-ac6dd-223499b4d550028c3f5cc97094745c4eb72ca60e
parent
781548a5
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Setup.hs
+4
-2
4 additions, 2 deletions
Setup.hs
include/HsTime.h
+4
-0
4 additions, 0 deletions
include/HsTime.h
time.cabal
+38
-31
38 additions, 31 deletions
time.cabal
with
46 additions
and
33 deletions
Setup.hs
+
4
−
2
View file @
1e426fff
...
...
@@ -7,10 +7,12 @@ import Distribution.Simple.LocalBuildInfo
import
Distribution.Simple.Utils
import
System.Cmd
import
System.Directory
import
System.Info
main
::
IO
()
main
=
do
let
hooks
=
autoconfUserHooks
{
runTests
=
runTestScript
}
defaultMainWithHooks
hooks
main
=
if
os
==
"windows"
then
defaultMain
else
let
hooks
=
autoconfUserHooks
{
runTests
=
runTestScript
}
in
defaultMainWithHooks
hooks
withCurrentDirectory
::
FilePath
->
IO
a
->
IO
a
withCurrentDirectory
path
f
=
do
...
...
This diff is collapsed.
Click to expand it.
include/HsTime.h
+
4
−
0
View file @
1e426fff
#ifndef __HSTIME_H__
#define __HSTIME_H__
#if defined(_MSC_VER) || defined(__MINGW32__) || defined(_WIN32)
#else
#include
"HsTimeConfig.h"
// Otherwise these clash with similar definitions from other packages:
#undef PACKAGE_BUGREPORT
...
...
@@ -12,6 +15,7 @@
#if HAVE_TIME_H
#include
<time.h>
#endif
#endif
long
int
get_current_timezone_seconds
(
time_t
,
int
*
pdst
,
char
const
*
*
pname
);
...
...
This diff is collapsed.
Click to expand it.
time.cabal
+
38
−
31
View file @
1e426fff
N
ame:
time
V
ersion:
1.1.2.
3
S
tability:
stable
L
icense:
BSD3
L
icense-
F
ile:
LICENSE
A
uthor:
Ashley Yakeley
M
aintainer:
<ashley@semantic.org>
H
omepage:
http://semantic.org/TimeLib/
S
ynopsis:
A time library
D
escription: A time library
C
ategory: System
B
uild-
T
ype:
Custom
C
abal-
V
ersion: >=1.2
n
ame:
time
v
ersion:
1.1.2.
4
s
tability:
stable
l
icense:
BSD3
l
icense-
f
ile:
LICENSE
a
uthor:
Ashley Yakeley
m
aintainer:
<ashley@semantic.org>
h
omepage:
http://semantic.org/TimeLib/
s
ynopsis:
A time library
d
escription:
A time library
c
ategory:
System
b
uild-
t
ype: Custom
c
abal-
v
ersion:
>=1.2
x-follows-version-policy:
Extra-Source-Files:
aclocal.m4 configure.ac configure
include/HsTime.h include/HsTimeConfig.h.in
Extra-Tmp-Files:
config.log config.status autom4te.cache
include/HsTimeConfig.h
extra-source-files:
aclocal.m4
configure.ac
configure
include/HsTime.h
include/HsTimeConfig.h.in
extra-tmp-files:
config.log
config.status
autom4te.cache
include/HsTimeConfig.h
F
lag split-base
f
lag split-base
Library {
Build-Depends: base >= 2
library
{
build-depends: base >= 2
if flag(split-base)
Build-Depends: base >= 3, old-locale
Build-Depends: base >= 3, old-locale
else
Build-Depends: base < 3
Build-Depends: base < 3
if os(windows)
Build-Depends: Win32
E
xposed-
M
odules:
e
xposed-
m
odules:
Data.Time.Calendar,
Data.Time.Calendar.MonthDay,
Data.Time.Calendar.OrdinalDate,
...
...
@@ -43,9 +49,9 @@ Library {
Data.Time.LocalTime,
Data.Time.Format,
Data.Time
E
xtensions:
ForeignFunctionInterface, CPP
C-S
ources:
cbits/HsTime.c
O
ther-
M
odules:
e
xtensions:
ForeignFunctionInterface, CPP
c-s
ources:
cbits/HsTime.c
o
ther-
m
odules:
Data.Time.Calendar.Private,
Data.Time.Calendar.Days,
Data.Time.Calendar.Gregorian,
...
...
@@ -58,8 +64,9 @@ Library {
Data.Time.LocalTime.TimeOfDay,
Data.Time.LocalTime.LocalTime,
Data.Time.Format.Parse
Include-Dirs: include
Install-Includes:
HsTime.h HsTimeConfig.h
include-dirs: include
install-includes:
HsTime.h
HsTimeConfig.h
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment