Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nofib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
nofib
Commits
35be7d97
Commit
35be7d97
authored
Jul 09, 2012
by
Simon Marlow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prelude no longer exports catch
parent
c45a6466
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
real/prolog/Main.hs
real/prolog/Main.hs
+3
-1
No files found.
real/prolog/Main.hs
View file @
35be7d97
...
...
@@ -14,6 +14,8 @@ import Engine
import
Version
import
Data.List
(
nub
)
--1.3
import
System.IO.Error
(
catchIOError
)
--- Command structure and parsing:
data
Command
=
Fact
Clause
|
Query
[
Term
]
|
Show
|
Error
|
Quit
|
NoChange
...
...
@@ -39,7 +41,7 @@ signOn = "Mini Prolog Version 1.5 (" ++ version ++ ")\n\n"
main
=
--echo False abort
putStr
signOn
>>
putStr
(
"Reading "
++
stdlib
)
>>
catch
(
readFile
stdlib
)
catch
IOError
(
readFile
stdlib
)
(
\
fail
->
putStr
"...not found
\n
"
>>
return
""
)
>>=
\
is
->
if
null
is
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment