Skip to content

Commit

Permalink
Make VectorFile a newtype
Browse files Browse the repository at this point in the history
  • Loading branch information
centromere committed Dec 20, 2016
1 parent 5af7bda commit 62e8db4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Expand Up @@ -10,6 +10,8 @@

* Now using IsString instance of ScrubbedBytes from memory package

* Linting

# 0.8.0

* Exceptions are now provided by the safe-exceptions package
Expand Down
4 changes: 1 addition & 3 deletions tests/vectors/VectorFile.hs
Expand Up @@ -108,9 +108,7 @@ instance FromJSON Vector where

parseJSON _ = mzero

data VectorFile =
VectorFile { vfVectors :: [Vector]
}
newtype VectorFile = VectorFile { vfVectors :: [Vector] }

instance ToJSON VectorFile where
toJSON VectorFile{..} = object [ "vectors" .= vfVectors ]
Expand Down

0 comments on commit 62e8db4

Please sign in to comment.