packages/filepath.git
4 years agoRename AutoTest to TestUtil
Neil Mitchell [Wed, 29 Oct 2014 08:31:02 +0000 (08:31 +0000)] 
Rename AutoTest to TestUtil

4 years agoRemove missing imports from AutoTest
Neil Mitchell [Wed, 29 Oct 2014 08:28:11 +0000 (08:28 +0000)] 
Remove missing imports from AutoTest

4 years agoFix up the .ghci file so it loads the tests
Neil Mitchell [Wed, 29 Oct 2014 08:28:02 +0000 (08:28 +0000)] 
Fix up the .ghci file so it loads the tests

4 years agoChange the generated file to be in module Test
Neil Mitchell [Wed, 29 Oct 2014 08:27:15 +0000 (08:27 +0000)] 
Change the generated file to be in module Test

4 years agoSimplify the :docs_ target
Neil Mitchell [Wed, 29 Oct 2014 08:22:18 +0000 (08:22 +0000)] 
Simplify the :docs_ target

4 years agoUse W and P for the qualifications in ghci, so its test suite compatible
Neil Mitchell [Wed, 29 Oct 2014 08:22:04 +0000 (08:22 +0000)] 
Use W and P for the qualifications in ghci, so its test suite compatible

4 years agoLoad the generator into ghci
Neil Mitchell [Wed, 29 Oct 2014 08:21:47 +0000 (08:21 +0000)] 
Load the generator into ghci

4 years agoRename FilePath_Test to Test
Neil Mitchell [Wed, 29 Oct 2014 08:10:34 +0000 (08:10 +0000)] 
Rename FilePath_Test to Test

4 years agoDelete all the GHC test suite stuff, FilePath is now GHC test-suite free
Neil Mitchell [Wed, 29 Oct 2014 08:08:05 +0000 (08:08 +0000)] 
Delete all the GHC test suite stuff, FilePath is now GHC test-suite free

4 years agoBasic generator cleanups
Neil Mitchell [Wed, 29 Oct 2014 08:04:26 +0000 (08:04 +0000)] 
Basic generator cleanups

4 years agoChange the generator to write a file with Unix line endings on all platforms
Neil Mitchell [Wed, 29 Oct 2014 08:02:59 +0000 (08:02 +0000)] 
Change the generator to write a file with Unix line endings on all platforms

4 years agoAdd a travis.hs script to ensure the generator ran
Neil Mitchell [Wed, 29 Oct 2014 08:01:04 +0000 (08:01 +0000)] 
Add a travis.hs script to ensure the generator ran

4 years agoUpdate the tested-with line to what we currently test against
Neil Mitchell [Wed, 29 Oct 2014 08:00:48 +0000 (08:00 +0000)] 
Update the tested-with line to what we currently test against

4 years agoMove to the neil standard test
Neil Mitchell [Wed, 29 Oct 2014 08:00:28 +0000 (08:00 +0000)] 
Move to the neil standard test

4 years agoRemove the really old GHC tests, no longer interesting (although no intention of...
Neil Mitchell [Wed, 29 Oct 2014 07:32:26 +0000 (07:32 +0000)] 
Remove the really old GHC tests, no longer interesting (although no intention of breaking it)

4 years agoMove the generator
Neil Mitchell [Wed, 29 Oct 2014 07:31:51 +0000 (07:31 +0000)] 
Move the generator

4 years agoSince the generated code is checked in, no need to run the generator
Neil Mitchell [Wed, 29 Oct 2014 07:31:28 +0000 (07:31 +0000)] 
Since the generated code is checked in, no need to run the generator

4 years agoCheck in the filepath tests
Neil Mitchell [Wed, 29 Oct 2014 07:26:04 +0000 (07:26 +0000)] 
Check in the filepath tests

4 years agoReformat and make everything consistent, don't quote \, or it gets too confusing
Neil Mitchell [Tue, 28 Oct 2014 21:42:36 +0000 (21:42 +0000)] 
Reformat and make everything consistent, don't quote \, or it gets too confusing

4 years agoMerge pull request #33 from thomie/arbitrary
Neil Mitchell [Tue, 28 Oct 2014 20:53:46 +0000 (20:53 +0000)] 
Merge pull request #33 from thomie/arbitrary

Remove "|bcd123" from character set for tests (#15)

4 years agoRemove "|bcd123" from character set for tests (#15)
Thomas Miedema [Tue, 28 Oct 2014 20:17:38 +0000 (21:17 +0100)] 
Remove "|bcd123" from character set for tests (#15)

4 years agoMerge pull request #32 from thomie/unc
Neil Mitchell [Tue, 28 Oct 2014 20:05:49 +0000 (20:05 +0000)] 
Merge pull request #32 from thomie/unc

Bug fix: isValid "\\\\?\\D:file" == False

4 years agoPut "Valid x =>" constraint on joinDrive QuickCheck property
Thomas Miedema [Tue, 28 Oct 2014 18:57:32 +0000 (19:57 +0100)] 
Put "Valid x =>" constraint on joinDrive QuickCheck property

Counterexample:

    $ let x = "\\\\?\\D:file"
    $ splitDrive x
    ("\\\\?\\D:","file")
    $ uncurry joinDrive (splitDrive x)
    "\\\\?\\D:\\file"

The "problem" is that the current implementation of splitDrive can sometimes
return invalid drives, such as in the above example. However, if it wouldn't
do so, it would make the implementation of isValid and makeValid more
difficult.

My guideline is currently as follows: splitDrive makes the rough cut of what
is and what isn't a drive, isValid and makeValid finish the job, all other
functions assume drives and paths are valid.

This is also the reason joinDrive (=combineAlways) should not be changed to
not insert the extra slash, solely to handle an invalid path.

4 years agoBug fix: isValid "\\\\?\\D:file" == False
Thomas Miedema [Tue, 28 Oct 2014 18:55:42 +0000 (19:55 +0100)] 
Bug fix: isValid "\\\\?\\D:file" == False

From http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247.aspx:

* "A UNC name of any format [is never relative]."

* "You cannot use the "\\?\" prefix with a relative path."

4 years agoRefactor isValid and makeValid
Thomas Miedema [Tue, 28 Oct 2014 18:16:52 +0000 (19:16 +0100)] 
Refactor isValid and makeValid

`head (splitPath path)` is not equal to `takeDrive path` in general:

    head (splitPath "\\foo") == "\\"
    fst (splitDrive "\\foo") == ""

We can do this refactoring because they /are/ equal within the
constraint:

    `length drv >= 2 && all isPathSeparator drv`

4 years agoMerge pull request #31 from thomie/output
Neil Mitchell [Tue, 28 Oct 2014 15:19:35 +0000 (15:19 +0000)] 
Merge pull request #31 from thomie/output

quickSafe: do not call show on already escaped output (#30)

4 years agoquickSafe: do not call show on already escaped output (#30)
Thomas Miedema [Tue, 28 Oct 2014 14:22:35 +0000 (15:22 +0100)] 
quickSafe: do not call show on already escaped output (#30)

This output:

   *** Failed! ... QFilePath "/\\?/a:a"

is much easier to digest than:

   "*** FAILED! ... \NQFILEPATH \"/\\\\?/A:A\"\N"

4 years agoMerge pull request #29 from thomie/bugFixes
Neil Mitchell [Mon, 27 Oct 2014 21:09:33 +0000 (21:09 +0000)] 
Merge pull request #29 from thomie/bugFixes

Bug fixes for normalise #12

4 years agoChange min QuickCheck version back to 2.6 (#28)
Thomas Miedema [Mon, 27 Oct 2014 20:47:05 +0000 (21:47 +0100)] 
Change min QuickCheck version back to 2.6 (#28)

4 years agoRevert "Make splitFileName quickcheck test Posix only" (#14)
Thomas Miedema [Mon, 27 Oct 2014 13:32:26 +0000 (14:32 +0100)] 
Revert "Make splitFileName quickcheck test Posix only" (#14)

This reverts commit 0dd40adf8d4a8a3f409f3a877dba2ae7e98a5c5b.

4 years agoBug fix: normalise "C:.\\" == "C:"
Thomas Miedema [Mon, 27 Oct 2014 18:47:44 +0000 (19:47 +0100)] 
Bug fix: normalise "C:.\\" == "C:"

Another other option would be `normalise "C:.\\" == "C:.\\"`, but this is
nicer since we already have:

> normalise "C:.\\foo"
"C:foo"

4 years agoBug fix: normalise "//home" == "/home" (Posix)
Thomas Miedema [Mon, 27 Oct 2014 17:53:33 +0000 (18:53 +0100)] 
Bug fix: normalise "//home" == "/home" (Posix)

4 years agoBug fix: normalise "/./" == "/" on Posix, "\\" on Windows
Thomas Miedema [Mon, 27 Oct 2014 15:04:48 +0000 (16:04 +0100)] 
Bug fix: normalise "/./" == "/" on Posix, "\\" on Windows

4 years agoMerge pull request #26 from thomie/makeRelative
Neil Mitchell [Mon, 27 Oct 2014 14:40:11 +0000 (14:40 +0000)] 
Merge pull request #26 from thomie/makeRelative

Reenable test #25 and bug fix for makeRelative

4 years agoMerge pull request #21 from thomie/joinDrive-combineAlways
Neil Mitchell [Mon, 27 Oct 2014 13:21:53 +0000 (13:21 +0000)] 
Merge pull request #21 from thomie/joinDrive-combineAlways

Refactor: joinDrive and combineAlways

4 years agoBug fix: on Windows, makeRelative "/" "//" == "//"
Thomas Miedema [Sun, 26 Oct 2014 21:16:00 +0000 (22:16 +0100)] 
Bug fix: on Windows, makeRelative "/" "//" == "//"

4 years agoReenable and fix QuickCheck property for makeRelative (#25)
Thomas Miedema [Sun, 26 Oct 2014 21:13:08 +0000 (22:13 +0100)] 
Reenable and fix QuickCheck property for makeRelative (#25)

Both x and y should be valid.

4 years agojoinDrive=combineAlways
Thomas Miedema [Thu, 23 Oct 2014 17:14:24 +0000 (19:14 +0200)] 
joinDrive=combineAlways

4 years agoRemove unnecessary isDrive check in combineAlways
Thomas Miedema [Thu, 23 Oct 2014 17:09:26 +0000 (19:09 +0200)] 
Remove unnecessary isDrive check in combineAlways

`isWindows && isLetter a1` implies `isDrive [a1, ':']`

4 years agoInline call to joinDrive in combineAlways
Thomas Miedema [Thu, 23 Oct 2014 17:05:53 +0000 (19:05 +0200)] 
Inline call to joinDrive in combineAlways

The first 3 guards of both functions are the same, so copy-paste only the last
guard of joinDrive into combineAlways.

4 years agoInsert slash when first argument to joinDrive does not end with one
Thomas Miedema [Thu, 23 Oct 2014 16:23:56 +0000 (18:23 +0200)] 
Insert slash when first argument to joinDrive does not end with one

Before:
joinDrive "/foo" "bar" == "/foobar"

After:
joinDrive "/foo" "bar" == "/foo/bar"

The first argument to `joinDrive` should arguably always be a drive. On Posix
this means it should be, and thus end with, a single slash. It is currently
undocumented what should happen when it doesn't end with a slash (throw an
exception?). Since it is unlikely anyone is relying on the original behavior,
this change is hopefully ok to make.

The reason for this change is to make `joinDrive` similar in semantics to
`combineAlways`.

4 years agoRefactor: use hasTrailingPathSeparator in joinDrive and combineAlways
Thomas Miedema [Fri, 24 Oct 2014 19:11:09 +0000 (21:11 +0200)] 
Refactor: use hasTrailingPathSeparator in joinDrive and combineAlways

4 years agoAllow multiple "Valid =>" clauses in QuickCheck properties
Thomas Miedema [Sun, 26 Oct 2014 21:12:28 +0000 (22:12 +0100)] 
Allow multiple "Valid =>" clauses in QuickCheck properties

4 years agoMerge branch 'thomie-normalise'
Neil Mitchell [Sun, 26 Oct 2014 21:41:24 +0000 (21:41 +0000)] 
Merge branch 'thomie-normalise'

4 years agoMerge branch 'normalise' of https://github.com/thomie/filepath into thomie-normalise
Neil Mitchell [Sun, 26 Oct 2014 21:41:11 +0000 (21:41 +0000)] 
Merge branch 'normalise' of https://github.com/thomie/filepath into thomie-normalise

Conflicts:
System/FilePath/Internal.hs
changelog.md

4 years ago#24, turn back on the splitDirectories test
Neil Mitchell [Sun, 26 Oct 2014 21:36:43 +0000 (21:36 +0000)] 
#24, turn back on the splitDirectories test

4 years agoMerge pull request #20 from thomie/takeDirectory
Neil Mitchell [Sun, 26 Oct 2014 21:29:18 +0000 (21:29 +0000)] 
Merge pull request #20 from thomie/takeDirectory

Refactor takeDirectory

4 years agoMerge pull request #19 from thomie/splitDirectories
Neil Mitchell [Sun, 26 Oct 2014 21:24:14 +0000 (21:24 +0000)] 
Merge pull request #19 from thomie/splitDirectories

Refactor splitDirectories

4 years agoMerge pull request #17 from thomie/fix-isDrive-empty
Neil Mitchell [Sun, 26 Oct 2014 21:21:40 +0000 (21:21 +0000)] 
Merge pull request #17 from thomie/fix-isDrive-empty

Bug fix: isDrive "" == False

4 years agoMerge branch 'thomie-isValid'
Neil Mitchell [Sun, 26 Oct 2014 21:18:44 +0000 (21:18 +0000)] 
Merge branch 'thomie-isValid'

4 years agoMerge branch 'isValid' of https://github.com/thomie/filepath into thomie-isValid
Neil Mitchell [Sun, 26 Oct 2014 21:18:34 +0000 (21:18 +0000)] 
Merge branch 'isValid' of https://github.com/thomie/filepath into thomie-isValid

Conflicts:
changelog.md

4 years agoMerge branch 'master' of https://github.com/haskell/filepath
Neil Mitchell [Sun, 26 Oct 2014 21:12:20 +0000 (21:12 +0000)] 
Merge branch 'master' of https://github.com/haskell/filepath

4 years ago#16, add a specific example of the Windows weirdity
Neil Mitchell [Sun, 26 Oct 2014 21:11:57 +0000 (21:11 +0000)] 
#16, add a specific example of the Windows weirdity

4 years agoMerge pull request #16 from thomie/equalFilePath
Neil Mitchell [Sun, 26 Oct 2014 21:10:29 +0000 (21:10 +0000)] 
Merge pull request #16 from thomie/equalFilePath

Bug fix: equalFilePath "C:\\" "C:" == False

4 years ago#25, comment out another test
Neil Mitchell [Sun, 26 Oct 2014 21:09:44 +0000 (21:09 +0000)] 
#25, comment out another test

4 years ago#16, generalise some equalFilePath tests
Neil Mitchell [Sun, 26 Oct 2014 21:09:23 +0000 (21:09 +0000)] 
#16, generalise some equalFilePath tests

4 years ago#22, comment out a failing test
Neil Mitchell [Sun, 26 Oct 2014 21:00:20 +0000 (21:00 +0000)] 
#22, comment out a failing test

4 years ago#24, comment out a failing test
Neil Mitchell [Sun, 26 Oct 2014 21:00:00 +0000 (21:00 +0000)] 
#24, comment out a failing test

4 years agoChange the .ghci things to run the tests via Cabal - faster
Neil Mitchell [Sun, 26 Oct 2014 20:59:50 +0000 (20:59 +0000)] 
Change the .ghci things to run the tests via Cabal - faster

4 years agoRefactor normalise: simplify propSep
Thomas Miedema [Sun, 14 Sep 2014 22:20:52 +0000 (00:20 +0200)] 
Refactor normalise: simplify propSep

Only when a path on Windows starts with a leading forward slash does propSep
need to do something, all others path separators are properly taken care of by
joinPath.

Add 2 tests to show that splitDirectories can handle superfluous
pathSeparators, and a test to show that (this new version of) propSep is
indeed needed to normalise relative-to-root paths on Windows.

4 years agoBug fix: normalise "//server/test" == "\\\\server\\test"
Thomas Miedema [Sun, 26 Oct 2014 20:19:39 +0000 (21:19 +0100)] 
Bug fix: normalise "//server/test" == "\\\\server\\test"

When drive represents a network share, slashes were not being normalised
properly.

4 years agoBug fix: normalize "\\" == "\\"
Thomas Miedema [Sat, 25 Oct 2014 21:38:17 +0000 (23:38 +0200)] 
Bug fix: normalize "\\" == "\\"

4 years agoAdd a shrink method for QFilePath
Neil Mitchell [Sun, 26 Oct 2014 20:43:28 +0000 (20:43 +0000)] 
Add a shrink method for QFilePath

4 years agoMake sure :test is actually using the new code
Neil Mitchell [Sun, 26 Oct 2014 20:43:16 +0000 (20:43 +0000)] 
Make sure :test is actually using the new code

4 years agoAllow a broader range of QuickCheck
Neil Mitchell [Sun, 26 Oct 2014 20:43:06 +0000 (20:43 +0000)] 
Allow a broader range of QuickCheck

4 years agoRefactor takeDirectory
Thomas Miedema [Thu, 23 Oct 2014 12:17:20 +0000 (14:17 +0200)] 
Refactor takeDirectory

Do not reimplement `dropTrailingPathSeparator`.

4 years agoRemove unnecessary `not . null` check
Thomas Miedema [Thu, 23 Oct 2014 12:14:30 +0000 (14:14 +0200)] 
Remove unnecessary `not . null` check

If `res` and `dir` are both null, it doesn't matter which one we return.

4 years agoCleanup: rename file to dir in takeDirectory
Thomas Miedema [Sun, 14 Sep 2014 18:49:52 +0000 (20:49 +0200)] 
Cleanup: rename file to dir in takeDirectory

4 years agoRefactor splitDirectories
Thomas Miedema [Thu, 23 Oct 2014 10:59:29 +0000 (12:59 +0200)] 
Refactor splitDirectories

Use `dropTrailingPathSeparator` instead of the custom function `g` to remove
trailing path separators from FilePath components generated with `splitPath`.

Since `dropTrailingPathSeparator` does not change FilePath components
for which isDrive is True, it is no longer necessary to handle the first
FilePath component in a special way.

4 years agoBug fix: isValid "\\\\\\foo" == False
Thomas Miedema [Sat, 25 Oct 2014 22:21:24 +0000 (00:21 +0200)] 
Bug fix: isValid "\\\\\\foo" == False

Share name can not start with a slash.

4 years agoBug fix: isDrive "" == False
Thomas Miedema [Mon, 15 Sep 2014 07:48:41 +0000 (09:48 +0200)] 
Bug fix: isDrive "" == False

isDrive is only called from `dropTrailingPathSeparator` and `combineAlways`.
Both times occur after a check if the argument is not empty (i.e. null for
combineAlways, and hasTrailingPathSeparator for dropTrailingPathSeparator). So
this change is safe.

4 years agoMerge branch 'master' of https://github.com/haskell/filepath
Neil Mitchell [Sun, 26 Oct 2014 20:30:07 +0000 (20:30 +0000)] 
Merge branch 'master' of https://github.com/haskell/filepath

4 years ago#15, increase 100x the number of property tests
Neil Mitchell [Sun, 26 Oct 2014 20:28:48 +0000 (20:28 +0000)] 
#15, increase 100x the number of property tests

4 years agoBug fix: equalFilePath "C:\\" "C:" == False
Thomas Miedema [Thu, 23 Oct 2014 11:00:27 +0000 (13:00 +0200)] 
Bug fix: equalFilePath "C:\\" "C:" == False

This started out as a simple refactoring of `equalFilePath`, and later turned
out to also fix a small bug.

The refactoring is: use `dropTrailingPathSeparator` instead of the custom
function `dropTrailSlash`.

A difference between these two functions is that `dropTrailingPathSeparator`
potentially removes multiple trailing slashes, whereas `dropTrailSlash` only
removes the last one. But since we `normalise` the FilePath first, which
removes superfluous pathSeparators, this difference does not matter to us.

Another difference is that `dropTrailingPathSeparator` does not drop slashes
when the FilePath isDrive, but `dropTrailSlash` does:

dropTrailSlash "C:\\" == "C:"
dropTrailSlash "C:\\\\" == "C:\\"

dropTrailingPathSeparator "C:\\" == "C:\\"
dropTrailingPathSeparator "C:\\\\" == "C:\\\\"

As a result, equalFilePath of drives on Windows changes slightly:

Before:
equalFilePath "C:\\" "C:" == True
equalFilePath "C:\\\\" "C:" == False

After:
equalFilePath "C:\\" "C:" == False
equalFilePath "C:\\\\" "C:" == False

This can be considered a bug fix, since "C:\\foo" and "C:foo", and thus "C:\\"
and "C:", are not the same thing.

4 years agoMerge pull request #1 from thomie/cleanup
Neil Mitchell [Sun, 26 Oct 2014 20:20:37 +0000 (20:20 +0000)] 
Merge pull request #1 from thomie/cleanup

Cleanup

4 years agoMake splitFileName quickcheck test Posix only
Thomas Miedema [Thu, 23 Oct 2014 17:41:19 +0000 (19:41 +0200)] 
Make splitFileName quickcheck test Posix only

See Github #14.

4 years agoRefactor: break instead of span and 3x reverse
Thomas Miedema [Sun, 14 Sep 2014 21:45:40 +0000 (23:45 +0200)] 
Refactor: break instead of span and 3x reverse

This works because pathSeparators can only occur at the end of splitPath
elements. h is passed a pathElement without separators.

Add a test to show that superfluous (and a weird combination of)
pathSeparators are still preserved. This function does not normalise
pathSeparators, otherwise it could be simplified further.

4 years agoBug fix: pathSeparator can be forward slash on Windows
Thomas Miedema [Sun, 14 Sep 2014 19:19:30 +0000 (21:19 +0200)] 
Bug fix: pathSeparator can be forward slash on Windows

dropTrailingPathSeparator "/" would return "\\" on Windows, since that is the
default:

    pathSeparator = if isWindows then '\\' else '/'

The function `normalise` can be used to normalise pathSeparators in filepaths,
the function `dropTrailingPathSeparator` shouldn't do it for you.

The test now runs for both Posix as Windows.

4 years agoRefactor: introduce function hasLeadingPathSeparator for clarity
Thomas Miedema [Sun, 14 Sep 2014 15:46:28 +0000 (17:46 +0200)] 
Refactor: introduce function hasLeadingPathSeparator for clarity

Also fix the comment to reflect the code. This fixes #8752.

4 years agoRefactor: use hasTrailingPathSeparator
Thomas Miedema [Sun, 14 Sep 2014 16:26:21 +0000 (18:26 +0200)] 
Refactor: use hasTrailingPathSeparator

hasTrailingPathSeparator is defined as:

hasTrailingPathSeparator "" = False
hasTrailingPathSeparator x = isPathSeparator (last x)

4 years agoFix links and add more tests and comments
Thomas Miedema [Sun, 14 Sep 2014 14:52:05 +0000 (16:52 +0200)] 
Fix links and add more tests and comments

No tests are removed, only new ones added.

The semantics of `combine` is questionable. See also #8752. Not changing
anything for the moment.

4 years agoMove isRelativeDrive tests to isRelative
Thomas Miedema [Sun, 14 Sep 2014 14:52:40 +0000 (16:52 +0200)] 
Move isRelativeDrive tests to isRelative

Those tests were commented out, because isRelativeDrive is not normally
exported from the module. Instead of doing a special testing compilation by
passing the TESTING=1 environment variable, it seemed easier to rewrite the
tests to use isRelative.

Only the following trivial test is not accounted for:

    isRelativeDrive "" == True

4 years agoPut the docs back, it seems to conflict with CPP some weird way
Neil Mitchell [Sun, 19 Oct 2014 13:13:35 +0000 (14:13 +0100)] 
Put the docs back, it seems to conflict with CPP some weird way

4 years agoFix the homepage to actually exist
Neil Mitchell [Sun, 19 Oct 2014 13:10:59 +0000 (14:10 +0100)] 
Fix the homepage to actually exist

4 years agoImprove the module description
Neil Mitchell [Sun, 19 Oct 2014 13:10:44 +0000 (14:10 +0100)] 
Improve the module description

4 years agoRevert the clever import trick - it confuses Haddock
Neil Mitchell [Sun, 19 Oct 2014 13:10:28 +0000 (14:10 +0100)] 
Revert the clever import trick - it confuses Haddock

4 years agoReformat whitespace
Neil Mitchell [Sun, 19 Oct 2014 13:02:26 +0000 (14:02 +0100)] 
Reformat whitespace

4 years agoRemove dead code
Neil Mitchell [Sun, 19 Oct 2014 13:02:19 +0000 (14:02 +0100)] 
Remove dead code

4 years ago#4, make sure the tests fail if there is an error
Neil Mitchell [Sun, 19 Oct 2014 13:01:25 +0000 (14:01 +0100)] 
#4, make sure the tests fail if there is an error

4 years ago#4, make QFilePath have the right set Char instance
Neil Mitchell [Sun, 19 Oct 2014 13:01:13 +0000 (14:01 +0100)] 
#4, make QFilePath have the right set Char instance

4 years agoFix up the docs so the code has the correct indentation
Neil Mitchell [Sun, 19 Oct 2014 13:00:32 +0000 (14:00 +0100)] 
Fix up the docs so the code has the correct indentation

4 years agoAdd a :test target
Neil Mitchell [Sun, 19 Oct 2014 12:48:02 +0000 (13:48 +0100)] 
Add a :test target

4 years agoAdd ghci targets for building the docs
Neil Mitchell [Sun, 19 Oct 2014 12:45:34 +0000 (13:45 +0100)] 
Add ghci targets for building the docs

4 years agoAdd dist to the .gitignore
Neil Mitchell [Sun, 19 Oct 2014 12:45:24 +0000 (13:45 +0100)] 
Add dist to the .gitignore

4 years agoAdd a .ghci file
Neil Mitchell [Sun, 19 Oct 2014 12:42:44 +0000 (13:42 +0100)] 
Add a .ghci file

4 years agoRefactor so less is conditional on CPP
Neil Mitchell [Sun, 19 Oct 2014 12:38:22 +0000 (13:38 +0100)] 
Refactor so less is conditional on CPP

4 years agoUpdate some copyright/contact bits and pieces
Neil Mitchell [Sun, 19 Oct 2014 12:36:52 +0000 (13:36 +0100)] 
Update some copyright/contact bits and pieces

4 years agoImprove the README
Neil Mitchell [Sun, 19 Oct 2014 12:36:30 +0000 (13:36 +0100)] 
Improve the README

4 years agoRemove some redundant whitespace
Neil Mitchell [Sun, 19 Oct 2014 12:36:20 +0000 (13:36 +0100)] 
Remove some redundant whitespace

4 years agoShorten Setup.hs, make it more obvious it is uninteresting
Neil Mitchell [Sun, 19 Oct 2014 12:02:19 +0000 (13:02 +0100)] 
Shorten Setup.hs, make it more obvious it is uninteresting