@@ -1,7 +1,7 @@
1Primitive Operators
1Primitive Operators
2===================
2===================
4−.. list-table:: Primitive Operators
4+.. list-table::
5 :widths: 10 30
5 :widths: 10 30
6 :stub-columns: 1
6 :stub-columns: 1
@@ -329,7 +329,7 @@ Primitive Operators
329Read and Write State
329Read and Write State
330====================
330====================
332−.. list-table:: Read and Write State
332+.. list-table::
333 :widths: 10 30
333 :widths: 10 30
334 :stub-columns: 1
334 :stub-columns: 1
@@ -375,13 +375,6 @@ Read and Write State
376 lookupTyExact : TTName -> Elab (TTName, NameType, TT)
376 lookupTyExact : TTName -> Elab (TTName, NameType, TT)
378− .. code-block:: idris
380− lookupTyExact n = case !(lookupTy n) of
382− [] => fail [NamePart n, TextPart "is not defined."]
383− xs => fail [NamePart n, TextPart "is ambiguous."]
385 * - lookupDatatype
378 * - lookupDatatype
386 - Find the reflected representation of all datatypes whose names are overloadings of some name.
379 - Find the reflected representation of all datatypes whose names are overloadings of some name.
@@ -396,15 +389,6 @@ Read and Write State
397 lookupDatatypeExact : TTName -> Elab Datatype
390 lookupDatatypeExact : TTName -> Elab Datatype
399− .. code-block:: idris
401− lookupDatatypeExact n = case !(lookupDatatype n) of
403− [] => fail [TextPart
404− "No datatype named", NamePart n]
405− xs => fail [TextPart "More than one datatype named",
408 * - lookupFunDefn
392 * - lookupFunDefn
409 - Find the reflected function definition of all functions whose names are overloadings of some name.
393 - Find the reflected function definition of all functions whose names are overloadings of some name.
@@ -427,14 +411,12 @@ Read and Write State
427 lookupArgs : TTName -> Elab (List (TTName, List FunArg, Raw))
411 lookupArgs : TTName -> Elab (List (TTName, List FunArg, Raw))
429 * - lookupArgsExact
413 * - lookupArgsExact
430− - Get the argument specification for a name. Fail if the name does not uniquely resolve.
414+ - Get the argument specification for a name. Fail if the name does not uniquely resolve.
432 Signature:
416 Signature:
434 lookupArgsExact : TTName -> Elab (TTName, List FunArg, Raw)
418 lookupArgsExact : TTName -> Elab (TTName, List FunArg, Raw)
436− .. code-block:: idris
438 * - check
420 * - check
439 - Attempt to type-check a term, getting back itself and its type.
421 - Attempt to type-check a term, getting back itself and its type.
@@ -448,7 +430,7 @@ Read and Write State
448Error Handling
430Error Handling
449==============
431==============
451−.. list-table:: Error Handling
433+.. list-table::
452 :widths: 10 30
434 :widths: 10 30
453 :stub-columns: 1
435 :stub-columns: 1
@@ -460,7 +442,7 @@ Error Handling
461 tryCatch : Elab a -> (Err -> Elab a) -> Elab a
443 tryCatch : Elab a -> (Err -> Elab a) -> Elab a
463− Fixme - following does not work.
445+ Fixme - following does not work.
465 .. code-block:: idris
447 .. code-block:: idris