avers 0.0.1 → 0.0.2
raw patch · 2 files changed
+21/−1 lines, 2 files
Files
- avers.cabal +2/−1
- src/Avers/Index.hs +19/−0
avers.cabal view
@@ -1,5 +1,5 @@ name: avers-version: 0.0.1+version: 0.0.2 license: GPL-3 license-file: LICENSE author: Tomas Carnecky@@ -31,6 +31,7 @@ , Avers.TH , Avers.Types , Avers.Views+ , Avers.Index -- Standard dependencies, stuff that is or should be in the platform.
+ src/Avers/Index.hs view
@@ -0,0 +1,19 @@+module Avers.Index where+++import Data.Text (Text)+import qualified Database.RethinkDB as R++++data Index = Index+ { indexName :: Text+ , indexType :: IndexType+ }+++data IndexType+ = SimpleIndex Text+ | CompoundIndex [R.Exp ()]+ | MultiIndex (R.Exp ())+ | ArbitraryIndex (R.Exp ()) Bool