Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
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
Alex D
GHC
Commits
76401810
Commit
76401810
authored
Aug 19, 2007
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some runghc docs to the users guide
parent
b0616f49
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
0 deletions
+44
-0
docs/users_guide/runghc.xml
docs/users_guide/runghc.xml
+42
-0
docs/users_guide/ug-book.xml.in
docs/users_guide/ug-book.xml.in
+1
-0
docs/users_guide/ug-ent.xml
docs/users_guide/ug-ent.xml
+1
-0
No files found.
docs/users_guide/runghc.xml
0 → 100644
View file @
76401810
<?xml version="1.0" encoding="iso-8859-1"?>
<chapter
id=
"ghci"
>
<title>
Using runghc
</title>
<indexterm><primary>
runghc
</primary></indexterm>
<para>
runghc allows you to run Haskell programs without first having
to compile them.
</para>
<sect1
id=
"ghci-introduction"
>
<title>
Flags
</title>
<para>
The runghc commandline looks like:
</para>
<screen>
runghc [runghc flags] [GHC flags] module [program flags]
</screen>
<para>
The only runghc flag currently is
<literal>
-f /path/to/ghc
</literal>
,
which tells runghc which GHC to use to run the program. If it is
not given then runghc will search for GHC in the directories in the
system search path.
</para>
<para>
runghc will try to work out where the boundaries between
<literal>
[runghc flags]
</literal>
and
<literal>
[GHC flags]
</literal>
, and
<literal>
[GHC flags]
</literal>
and
<literal>
module
</literal>
are, but you can use a
<literal>
--
</literal>
flag if it doesn't get it right. For example,
<literal>
runghc -- -fglasgow-exts Foo
</literal>
means runghc
won't try to use
<literal>
glasgow-exts
</literal>
as the path to GHC,
but instead will pass the flag to GHC.
</para>
</sect1>
</chapter>
<!-- Emacs stuff:
;;; Local Variables: ***
;;; mode: xml ***
;;; sgml-parent-document: ("users_guide.xml" "book" "chapter") ***
;;; End: ***
-->
docs/users_guide/ug-book.xml.in
View file @
76401810
...
...
@@ -11,6 +11,7 @@
&intro;
&installing;
&ghci;
&runghc;
&using;
&prof;
&sooner;
...
...
docs/users_guide/ug-ent.xml
View file @
76401810
<!ENTITY ghci SYSTEM "ghci.xml">
<!ENTITY runghc SYSTEM "runghc.xml">
<!ENTITY flags SYSTEM "flags.xml">
<!ENTITY license SYSTEM "license.xml">
<!ENTITY intro SYSTEM "intro.xml" >
...
...
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