Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openGeoDB documention fix #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ a flavor of Haskell introduced for safe operation.
Here is an example session:

geoLookup = do
g <- openGeoDB "GeoLiteCity.dat" memory_cache
g <- openGeoDB memory_cache "GeoLiteCity.dat"
geoLocateByIPAddress g "5.5.5.5"


Expand Down
2 changes: 1 addition & 1 deletion src/Data/Geolocation/GeoIP.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ mkIpNum x = case valid of
--
-- This would open a file and cache in memory:
--
-- > openGeoDB "GeoCity.dat" memory_cache
-- > openGeoDB memory_cache "GeoCity.dat"
--
-- The memory on the C side is automatically freed by the Haskell GC when
-- appropriate.
Expand Down