Skip to content

Commit 0f76c10

Browse files
authored
Merge pull request #5 from vbfox/core_bump_2021
Core bump 2021
2 parents 1844276 + de2f631 commit 0f76c10

39 files changed

Lines changed: 5541 additions & 2642 deletions

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"paket": {
6-
"version": "6.0.0-beta9",
6+
"version": "8.0.3",
77
"commands": [
88
"paket"
99
]

.editorconfig

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ root = true
44
indent_style = space
55
indent_size = 4
66
insert_final_newline = true
7-
end_of_line = crlf
7+
end_of_line = lf
88

99
# Xml project files
1010
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
@@ -16,7 +16,3 @@ indent_size = 2
1616

1717
[*.{yml,yaml}]
1818
indent_size = 2
19-
20-
[*.sh]
21-
end_of_line = lf
22-

.github/workflows/main.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ jobs:
1515
DOTNET_NOLOGO: 1
1616
PAKET_SKIP_RESTORE_TARGETS: true
1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-dotnet@v4
20+
with:
21+
dotnet-version: |
22+
2
23+
5
1924
- name: Restore packages
2025
run: ./paket.sh restore
2126
- name: Compile build script
@@ -30,7 +35,12 @@ jobs:
3035
DOTNET_NOLOGO: 1
3136
PAKET_SKIP_RESTORE_TARGETS: true
3237
steps:
33-
- uses: actions/checkout@v2
38+
- uses: actions/checkout@v4
39+
- uses: actions/setup-dotnet@v4
40+
with:
41+
dotnet-version: |
42+
2
43+
5
3444
- name: Restore packages
3545
run: ./paket.cmd restore
3646
- name: Compile build script

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,3 +245,5 @@ paket-files/
245245
launchSettings.json
246246
.ionide/
247247
.idea/
248+
249+
TestResults.xml

.paket/Paket.Restore.targets

Lines changed: 505 additions & 439 deletions
Large diffs are not rendered by default.

Readme.md

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
MasterOfFoo
2-
===========
1+
# MasterOfFoo
32

43
!["f" Logo](https://raw.githubusercontent.com/vbfox/MasterOfFoo/master/src/BlackFox.MasterOfFoo/Icon.png)
54

@@ -13,8 +12,7 @@ The code is essentially an extracted version of [`printf.fs`][printf_fs] where t
1312
what to do with the final blocks that compose the string (printf put them on the console, sprintf in a buffer, ...)
1413
but also what to do with the parameters passed for each format specifier.
1514

16-
Sample usage
17-
------------
15+
## Sample usage
1816

1917
```fsharp
2018
module MyModule =
@@ -33,8 +31,7 @@ module MyModule =
3331
MyModule.mysprintf "Hello %s." "World"
3432
```
3533

36-
Mini-Doc
37-
--------
34+
## Mini-Doc
3835

3936
### PrintableElement
4037

@@ -70,8 +67,7 @@ Members:
7067
* `doPrintfFromEnv`: Take a format and a `PrintfEnv` to create a printf-like function
7168
* `doPrintf`: Same as `doPrintfFromEnv` but allow to know the number of elements when the `PrintfEnv` is created.
7269

73-
FAQ
74-
---
70+
## FAQ
7571

7672
### What does it allow exactly that can't be done with the original set of functions ?
7773

@@ -102,12 +98,22 @@ value.
10298
val it : (int -> int -> float -> string) = <fun:it@1>
10399
````
104100

105-
Projects using it
106-
-----------------
101+
### How are interpolated strings represented ?
102+
103+
The details of string interpolation internals are specified in [F# RFC FS-1001 - String Interpolation][fs-1001].
104+
105+
They appear as follow in this library:
106+
* Type-checked "printf-style" fills behave exactly as they do in `sprintf` and friends.
107+
* Unchecked ".NET-style" fills appear with a `Specifier.TypeChar` of 'P' and the .NET format string
108+
in `Specifier.InteropHoleDotNetFormat`.
109+
110+
[fs-1001]: https://github.com/fsharp/fslang-design/blob/aca88da13cdb95f4f337d4f7d44cbf9d343704ae/FSharp-5.0/FS-1001-StringInterpolation.md#f-rfc-fs-1001---string-interpolation
111+
112+
## Projects using it
107113

108114
* [ColoredPrintf][colorprintf]: A small library that I created to add colored parts to printf strings.
109115

110-
*If you use it somewhere, ping me on twitter [@virtualblackfox][twitter] so I can add you.*
116+
*If you use it somewhere, ping me on the fediverse [@vbfox@hachyderm.io][fedi] so I can add you.*
111117

112118
More fun ?
113119
----------
@@ -142,5 +148,5 @@ ColorPrintf.colorprintf "%s est %t" "La vie" (fun _ -> "belle !")
142148
```
143149

144150
[printf_fs]: https://github.com/fsharp/fsharp/blob/master/src/fsharp/FSharp.Core/printf.fs
145-
[twitter]: https://twitter.com/virtualblackfox
151+
[fedi]: https://hachyderm.io/@vbfox
146152
[colorprintf]: https://github.com/vbfox/ColoredPrintf

Release Notes.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
### New in 2.0.0
2+
3+
* Include the readme in the NuGet package
4+
* Build with 8.0.201 SDK
5+
* The new set of supported platforms is .NET Framework 4.6.1, .NET Standard 2.0 and .NET 5.0
6+
* Add support for interpolated strings
7+
18
### New in 1.0.6
29

310
* Make dependency ranges less strict (For `FSharp.Core` 6.x)

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "5.0.201",
3+
"version": "8.0.201",
44
"rollForward": "latestMajor"
55
}
66
}

paket.cmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
@dotnet tool restore
1+
@dotnet tool restore --verbosity quiet
2+
23
dotnet paket %*

paket.dependencies

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
source https://api.nuget.org/v3/index.json
2-
framework: net5.0,netcoreapp2.0,netstandard1.6,netstandard2.0,net45
2+
framework: net8.0,net5.0,netcoreapp2.0,netstandard2.0,net461
33
storage:none
44

5-
nuget Expecto
5+
nuget Expecto ~> 9
66
nuget FSharp.Core
77
nuget System.Data.SqlClient
88

99
// Build infrastructure
1010
group build
1111
source https://api.nuget.org/v3/index.json
1212
storage: none
13-
framework: net5.0
13+
framework: net8.0
1414

1515
nuget FSharp.Core ~> 5
1616
nuget BlackFox.Fake.BuildTask

0 commit comments

Comments
 (0)