summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorapeyroux <>2018-11-08 08:18:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2018-11-08 08:18:00 (GMT)
commite295c139872f7df2b2d556cf3e174ccb09b1416c (patch)
tree59be6475fdb62e1b3ab38513f7e4230642c67dea
parent5e0fde1ca26e5014b33ee2b1881f05f12081c5a7 (diff)
version 1.0.11.0.1
-rw-r--r--google-isbn.cabal5
-rw-r--r--src/Google/ISBN.hs2
-rw-r--r--src/Main.hs8
3 files changed, 12 insertions, 3 deletions
diff --git a/google-isbn.cabal b/google-isbn.cabal
index 4e865e4..a4bfb64 100644
--- a/google-isbn.cabal
+++ b/google-isbn.cabal
@@ -2,10 +2,10 @@
--
-- see: https://github.com/sol/hpack
--
--- hash: 1e1e64f60e4f08b7103b3d444a76b6af01b0f53da482e070e9a65de401bd499a
+-- hash: da24bcfc0b9e1213e062884e57d60ff7c9cfd60753d980885e890bebd3b1b9f2
name: google-isbn
-version: 1.0.0
+version: 1.0.1
description: Basic utility to search an ISBN using the Google Books webservice
category: Text, Web
homepage: https://github.com/apeyroux/google-isbn#readme
@@ -23,6 +23,7 @@ source-repository head
library
exposed-modules:
Google.ISBN
+ Main
other-modules:
Paths_google_isbn
hs-source-dirs:
diff --git a/src/Google/ISBN.hs b/src/Google/ISBN.hs
index 9e6bfdb..ac15d6b 100644
--- a/src/Google/ISBN.hs
+++ b/src/Google/ISBN.hs
@@ -10,7 +10,7 @@
--
module Google.ISBN (
- ISBN
+ ISBN (..)
, GoogleISBN (..)
, Book (..)
, googleISBN
diff --git a/src/Main.hs b/src/Main.hs
new file mode 100644
index 0000000..eaa3468
--- /dev/null
+++ b/src/Main.hs
@@ -0,0 +1,8 @@
+{-# LANGUAGE OverloadedStrings #-}
+
+module Main where
+
+import Google.ISBN
+
+main :: IO ()
+main = googleISBN (ISBN "ok") >>= print