From ec2dcd7b5ea33edd34f62ac1be167db3de8ad267 Mon Sep 17 00:00:00 2001 From: John Goerzen Date: Wed, 28 May 2008 00:24:59 -0500 Subject: [PATCH] Working on it --- OfflineIMAP.cabal | 11 +++++++---- Setup.lhs | 7 +++++++ src/Data/Syncable.hs | 21 +++++++++++++++++++++ src/offlineimap.hs | 19 +++++++++++++++++++ testsrc/runtests.hs | 26 ++++++++++++++++++++++++++ 5 files changed, 80 insertions(+), 4 deletions(-) create mode 100644 Setup.lhs create mode 100644 src/Data/Syncable.hs create mode 100644 src/offlineimap.hs create mode 100644 testsrc/runtests.hs diff --git a/OfflineIMAP.cabal b/OfflineIMAP.cabal index b60187b..51566e3 100644 --- a/OfflineIMAP.cabal +++ b/OfflineIMAP.cabal @@ -52,16 +52,19 @@ Library HDBC>=1.1.0, mtl, base, hslogger, ConfigFile, filepath, directory, process - If flag(splitBase) - Build-Depends: base >= 3, directory, random, process, old-time, + Exposed-Modules: Data.Syncable + + If flag(splitBase) + Build-Depends: base >= 3, directory, random, process, old-time, containers, old-locale, array - Else - Build-Depends: base < 3 + Else + Build-Depends: base < 3 Executable offlineimap Main-Is: src/offlineimap.hs GHC-Options: -O2 + Extensions: ExistentialQuantification, OverlappingInstances, UndecidableInstances diff --git a/Setup.lhs b/Setup.lhs new file mode 100644 index 0000000..9f3d8c1 --- /dev/null +++ b/Setup.lhs @@ -0,0 +1,7 @@ +#!/usr/bin/env runhugs +arch-tag: Main setup script + +> import Distribution.Simple + +> main = defaultMain + diff --git a/src/Data/Syncable.hs b/src/Data/Syncable.hs new file mode 100644 index 0000000..ccf9b77 --- /dev/null +++ b/src/Data/Syncable.hs @@ -0,0 +1,21 @@ +{- offlineimap component +Copyright (C) 2002-2008 John Goerzen + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +-} + +module Data.Syncable where + +main = putStrLn "fake" diff --git a/src/offlineimap.hs b/src/offlineimap.hs new file mode 100644 index 0000000..5c00f5c --- /dev/null +++ b/src/offlineimap.hs @@ -0,0 +1,19 @@ +{- offlineimap component +Copyright (C) 2002-2008 John Goerzen + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +-} + +main = putStrLn "fake" diff --git a/testsrc/runtests.hs b/testsrc/runtests.hs new file mode 100644 index 0000000..c15d168 --- /dev/null +++ b/testsrc/runtests.hs @@ -0,0 +1,26 @@ +{- +Copyright (C) 2002-2008 John Goerzen + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +-} + +module Main where + +import Test.HUnit +# import Tests + +#main = runTestTT tests +main = putStrLn "fake" + -- 2.39.2